Skip to content

Commit df62dd6

Browse files
committed
Check the number of tests passed
1 parent 5e21039 commit df62dd6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

e2e/__tests__/fatalWorkerError.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ test('fails a test that terminates the worker with a fatal error', () => {
3838
});
3939

4040
const {status, stderr} = runJest(DIR);
41+
42+
const numberOfTestsPassed = stderr.match(/\bPASS\b/g).length;
43+
4144
expect(status).not.toBe(0);
45+
expect(numberOfTestsPassed).toBe(Object.keys(testFiles).length - 1);
4246
expect(stderr).toContain('FAIL __tests__/fatalWorkerError.test.js');
4347
expect(stderr).toContain('Call retries were exceeded');
4448
});

0 commit comments

Comments
 (0)