test/integration/fixtures/multiple-runs/multiple-runs-with-different-output-suite.fixture.js
raw| 1 | describe('Multiple runs', () => { |
| 2 | |
| 3 | /** |
| 4 | * Shared state! Bad practice, but nice for this test |
| 5 | */ |
| 6 | let i = 0; |
| 7 | |
| 8 | it('should skip, fail and pass respectively', function () { |
| 9 | switch (i++) { |
| 10 | case 0: |
| 11 | this.skip(); |
| 12 | case 1: |
| 13 | throw new Error('Expected error'); |
| 14 | default: |
| 15 | // this is fine ☕ |
| 16 | break; |
| 17 | } |
| 18 | }); |
| 19 | }); |