Skip to content

Commit 85ae967

Browse files
committed
chore: run tests in both legacy and concurrent mode on the CI
1 parent dc40401 commit 85ae967

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/workflows/ci.yml

+17
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,23 @@ jobs:
6161
- name: Upload coverage to Codecov
6262
uses: codecov/codecov-action@v4
6363

64+
- name: Test in concurrent mode
65+
run: CONCURRENT_MODE=1 yarn test:ci
66+
67+
test-concurrent:
68+
needs: [install-cache-deps]
69+
runs-on: ubuntu-latest
70+
name: Test
71+
steps:
72+
- name: Checkout
73+
uses: actions/checkout@v4
74+
75+
- name: Setup Node.js and deps
76+
uses: ./.github/actions/setup-deps
77+
78+
- name: Test in concurrent mode
79+
run: CONCURRENT_MODE=1 yarn test:ci
80+
6481
test-website:
6582
runs-on: ubuntu-latest
6683
name: Test Website

jest-setup.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
import { resetToDefaults } from './src/pure';
1+
import { resetToDefaults, configure } from './src/pure';
22
import './src/matchers/extend-expect';
33

44
beforeEach(() => {
55
resetToDefaults();
6+
if (process.env.CONCURRENT_MODE === '1') {
7+
configure({ concurrentRoot: true });
8+
}
69
});

0 commit comments

Comments
 (0)