From 5f424178a2951a7ba1c00a45540933b6618d246d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Mon, 6 Dec 2021 21:42:33 +0000 Subject: [PATCH] Update test --- .../src/workers/__tests__/NodeThreadsWorker.test.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/jest-worker/src/workers/__tests__/NodeThreadsWorker.test.js b/packages/jest-worker/src/workers/__tests__/NodeThreadsWorker.test.js index 9e1d6500b104..1a4d04e57dba 100644 --- a/packages/jest-worker/src/workers/__tests__/NodeThreadsWorker.test.js +++ b/packages/jest-worker/src/workers/__tests__/NodeThreadsWorker.test.js @@ -54,12 +54,11 @@ afterEach(() => { it('passes fork options down to worker_threads.Worker, adding the defaults', () => { const thread = require.resolve('../threadChild'); - process.execArgv = ['--inspect', '-p']; - // eslint-disable-next-line no-new new Worker({ forkOptions: { execPath: 'hello', + execArgv: ['--inspect', '-p'] }, maxRetries: 3, workerData: {