Skip to content

Commit b166664

Browse files
committed
Add integration tests for Remix v2 features.
1 parent 09c5626 commit b166664

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

+219
-39
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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)