Skip to content

Commit 992d9ab

Browse files
committed
Adapt exit code to the platform
1 parent 135bf24 commit 992d9ab

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

e2e/__tests__/fatalWorkerError.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ test('fails a test that terminates the worker with a fatal error', () => {
3737
'package.json': '{}',
3838
});
3939

40+
const expectedExitCode = os.platform() === 'darwin' ? 1 : 134;
41+
4042
const {status, stderr} = runJest(DIR);
41-
expect(status).toBe(1);
43+
expect(status).toBe(expectedExitCode);
4244
expect(stderr).toContain('FAIL __tests__/fatalWorkerError.test.js');
4345
expect(stderr).toContain('Call retries were exceeded');
4446
});

0 commit comments

Comments
 (0)