From 5e21039d59540ffa141e56b9dad8dd93cc3e7bbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Norte?= Date: Thu, 7 Mar 2019 19:50:54 +0000 Subject: [PATCH] Adapt code to different exit code in different platforms --- 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 b2e6bf9ed00e..4b8841c22d53 100644 --- a/e2e/__tests__/fatalWorkerError.test.ts +++ b/e2e/__tests__/fatalWorkerError.test.ts @@ -38,7 +38,7 @@ test('fails a test that terminates the worker with a fatal error', () => { }); const {status, stderr} = runJest(DIR); - expect(status).toBe(1); + expect(status).not.toBe(0); expect(stderr).toContain('FAIL __tests__/fatalWorkerError.test.js'); expect(stderr).toContain('Call retries were exceeded'); });