diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 5238933..32a27f1 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -61,6 +61,9 @@ jobs: - name: Prepare for Node.js v14 if: ${{ matrix.node == '14' }} run: | + yarn set version 3 + yarn config set httpRetry 10 + cat .yarnrc.yml node ./scripts/prepare-test-for-legacy-nodejs.js --node-version ${{ matrix.node }} cat package.json yarn @@ -77,7 +80,7 @@ jobs: NODE_ENV: production FULL_TEST: true run: | - node ./node_modules/.bin/jest ${{ matrix.additional-options }} + yarn test:production-node14 ${{ matrix.additional-options }} babel: name: Babel diff --git a/README.md b/README.md index 291ab3e..f98f2af 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ The lists below are not comprehensive: feel free to [start a discussion](https:/ - Jest function mocks: `jest.fn`, `jest.spyOn`, `jest.clearAllMocks`, `jest.resetAllMocks` - Jest timer mocks: `jest.useFakeTimers`, `jest.useRealTimers`, `jest.setSystemTime`, `jest.advanceTimersByTime` - Inline and external snapshots -- Jest cli options: `--testNamePattern`/`-t`, `--maxWorkers`, `--runInBand` +- Jest cli options: `--testNamePattern`/`-t`, `--maxWorkers`, `--runInBand`, `--expand`, `--no-expand` - Jest config options: `setupFiles`, `setupFilesAfterEnv`, `snapshotSerializers`, `maxWorkers`, `snapshotFormat`, `snapshotResolver`, `slowTestThreshold`, `prettierPath`, `projects` - Jest environment variables: `JEST_WORKER_ID` diff --git a/src/worker-runner.js b/src/worker-runner.js index 863f7f4..a440d4a 100644 --- a/src/worker-runner.js +++ b/src/worker-runner.js @@ -115,7 +115,11 @@ export default async function run(testFilePath) { updateSnapshot: globalConfig.updateSnapshot, }, ); - expect.setState({ snapshotState, testPath: testFilePath }); + expect.setState({ + snapshotState, + testPath: testFilePath, + expand: globalConfig.expand, + }); const { tests, hasFocusedTests } = await loadTests(testFilePath);