We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7367cfa commit da0ff91Copy full SHA for da0ff91
1 file changed
packages/jest-runner/src/index.ts
@@ -166,7 +166,12 @@ export default class TestRunner {
166
167
const worker = new Worker(TEST_WORKER_PATH, {
168
exposedMethods: ['worker'],
169
- forkOptions: {stdio: 'pipe'},
+ forkOptions: {
170
+ // default to advanced serialization in order to match worker threads
171
+ // @ts-expect-error: option does not exist on the node 10 types
172
+ serialization: 'advanced',
173
+ stdio: 'pipe',
174
+ },
175
maxRetries: 3,
176
numWorkers: this._globalConfig.maxWorkers,
177
setupArgs: [
0 commit comments