Skip to content

Commit

Permalink
Adapt exit code to the platform
Browse files Browse the repository at this point in the history
  • Loading branch information
rubennorte committed Mar 7, 2019
1 parent 135bf24 commit 992d9ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion e2e/__tests__/fatalWorkerError.test.ts
Expand Up @@ -37,8 +37,10 @@ test('fails a test that terminates the worker with a fatal error', () => {
'package.json': '{}',
});

const expectedExitCode = os.platform() === 'darwin' ? 1 : 134;

const {status, stderr} = runJest(DIR);
expect(status).toBe(1);
expect(status).toBe(expectedExitCode);
expect(stderr).toContain('FAIL __tests__/fatalWorkerError.test.js');
expect(stderr).toContain('Call retries were exceeded');
});

0 comments on commit 992d9ab

Please sign in to comment.