Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down
6 changes: 5 additions & 1 deletion src/worker-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Loading