UNPKG

jasmine-fail-fast

Version:

Allow Jasmine tests to "fail-fast", exiting on the first failure instead of running all tests no matter what.

19 lines (16 loc) 341 B
export default function() { describe('Pass-fail-pass', () => { it('passes', () => { expect(true).toBeTruthy(); }); it('fails', () => { expect(true).toBeFalsy(); }); it('passes slowly', (done) => { setTimeout(() => { expect(true).toBeTruthy(); done(); }, 2000); }); }); }