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'); });