From 03723d68b213984ae7931bd94aebfcd9d776c88a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Norte?= Date: Thu, 7 Mar 2019 22:18:45 +0000 Subject: [PATCH] Explicitly set maxWorkers to force using workers --- e2e/__tests__/fatalWorkerError.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/__tests__/fatalWorkerError.test.ts b/e2e/__tests__/fatalWorkerError.test.ts index ce6f70dfa979..28e0bbb3daf4 100644 --- a/e2e/__tests__/fatalWorkerError.test.ts +++ b/e2e/__tests__/fatalWorkerError.test.ts @@ -37,7 +37,7 @@ test('fails a test that terminates the worker with a fatal error', () => { 'package.json': '{}', }); - const {status, stderr} = runJest(DIR); + const {status, stderr} = runJest(DIR, ['--maxWorkers=2']); const numberOfTestsPassed = stderr.match(/\bPASS\b/g).length;