Skip to content

Commit 123a18b

Browse files
committed
Revert "fix(jest-runner): handle test failures with circular objects (jestjs#10981)"
This reverts commit 4c4162b.
1 parent ab014c1 commit 123a18b

4 files changed

Lines changed: 1 addition & 118 deletions

File tree

ā€ŽCHANGELOG.mdā€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
- `[jest-reporter]` Handle empty files when reporting code coverage with V8 ([#10819](https://github.com/facebook/jest/pull/10819))
5151
- `[jest-resolve]` Replace read-pkg-up with escalade package ([#10781](https://github.com/facebook/jest/pull/10781))
5252
- `[jest-resolve]` Disable `jest-pnp-resolver` for Yarn 2 ([#10847](https://github.com/facebook/jest/pull/10847))
53-
- `[jest-runner]` Handle test failures with circular objects ([#10981](https://github.com/facebook/jest/pull/10981))
5453
- `[jest-runtime]` [**BREAKING**] Do not inject `global` variable into module wrapper ([#10644](https://github.com/facebook/jest/pull/10644))
5554
- `[jest-runtime]` [**BREAKING**] remove long-deprecated `jest.addMatchers`, `jest.resetModuleRegistry`, and `jest.runTimersToTime` ([#9853](https://github.com/facebook/jest/pull/9853))
5655
- `[jest-runtime]` Fix stack overflow and promise deadlock when importing mutual dependant ES module ([#10892](https://github.com/facebook/jest/pull/10892))

ā€Že2e/__tests__/__snapshots__/circularInequality.test.ts.snapā€Ž

Lines changed: 0 additions & 53 deletions
This file was deleted.

ā€Že2e/__tests__/circularInequality.test.tsā€Ž

Lines changed: 0 additions & 58 deletions
This file was deleted.

ā€Žpackages/jest-runner/src/index.tsā€Ž

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,7 @@ export default class TestRunner {
166166

167167
const worker = new Worker(TEST_WORKER_PATH, {
168168
exposedMethods: ['worker'],
169-
forkOptions: {
170-
// use advanced serialization in order to transfer objects with circular references
171-
// @ts-expect-error: option does not exist on the node 10 types
172-
serialization: 'advanced',
173-
stdio: 'pipe',
174-
},
169+
forkOptions: {stdio: 'pipe'},
175170
maxRetries: 3,
176171
numWorkers: this._globalConfig.maxWorkers,
177172
setupArgs: [

0 commit comments

Comments
Ā (0)
⚔