Skip to content

Commit 0c19446

Browse files
authored
test(remix): Add Remix v2 future flags integration tests. (#8397)
Added an integration test application using [Remix 1.17.0](https://github.com/remix-run/remix/releases/tag/remix%401.17.0) and [v2 future flags](https://remix.run/docs/en/main/pages/api-development-strategy) to see the state of current SDK support for v2.
1 parent 947db1b commit 0c19446

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+220
-40
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ jobs:
685685
yarn test
686686
687687
job_remix_integration_tests:
688-
name: Remix (Node ${{ matrix.node }}) Tests
688+
name: Remix v${{ matrix.remix }} (Node ${{ matrix.node }}) Tests
689689
needs: [job_get_metadata, job_build]
690690
if: needs.job_get_metadata.outputs.changed_remix == 'true' || github.event_name != 'pull_request'
691691
runs-on: ubuntu-20.04
@@ -694,6 +694,7 @@ jobs:
694694
fail-fast: false
695695
matrix:
696696
node: [14, 16, 18]
697+
remix: [1, 2]
697698
steps:
698699
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
699700
uses: actions/checkout@v3
@@ -710,6 +711,7 @@ jobs:
710711
- name: Run integration tests
711712
env:
712713
NODE_VERSION: ${{ matrix.node }}
714+
REMIX_VERSION: ${{ matrix.remix }}
713715
run: |
714716
cd packages/remix
715717
yarn test:integration:ci

packages/remix/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@
5959
"lint:eslint": "eslint . --format stylish",
6060
"lint:prettier": "prettier --check \"{src,test,scripts}/**/**.ts\"",
6161
"test": "yarn test:unit",
62-
"test:integration": "run-s test:integration:clean test:integration:prepare test:integration:client test:integration:server",
62+
"test:integration": "run-s test:integration:v1 test:integration:v2",
63+
"test:integration:v1": "run-s test:integration:clean test:integration:prepare test:integration:client test:integration:server",
64+
"test:integration:v2": "export REMIX_VERSION=2 && run-s test:integration:v1",
6365
"test:integration:ci": "run-s test:integration:clean test:integration:prepare test:integration:client:ci test:integration:server",
6466
"test:integration:prepare": "(cd test/integration && yarn)",
6567
"test:integration:clean": "(cd test/integration && rimraf .cache node_modules build)",
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from '../../../common/routes/action-json-response.$id';
2+
export { default } from '../../../common/routes/action-json-response.$id';
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from '../../common/routes/capture-exception';
2+
export { default } from '../../common/routes/capture-exception';
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from '../../common/routes/capture-message';
2+
export { default } from '../../common/routes/capture-message';
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from '../../../common/routes/error-boundary-capture.$id';
2+
export { default } from '../../../common/routes/error-boundary-capture.$id';
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from '../../common/routes/index';
2+
export { default } from '../../common/routes/index';

0 commit comments

Comments
 (0)