Debian Codegraph @

test/integration/fixtures/multiple-runs/multiple-runs-with-flaky-before-each-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 beforeEach(function () {
9 if (i++ === 0) {
10 throw new Error('Expected error for this test');
11 }
12 });
13
14
15 it('should be a dummy test', function () {
16 // this is fine ☕
17 });
18 });