(name, delay, fail)
| 23 | afterEach(() => marker('afterEach')); |
| 24 | |
| 25 | const testFn = (name, delay, fail) => { |
| 26 | return async () => { |
| 27 | marker(`START "${name}"`); |
| 28 | await setTimeout(delay); |
| 29 | if (fail) { |
| 30 | throw new Error(`${name} failed`); |
| 31 | } |
| 32 | expect(name).toBe(name); |
| 33 | expect.assertions(1); |
| 34 | marker(`END: "${name}"`); |
| 35 | }; |
| 36 | }; |
| 37 | |
| 38 | it.concurrent('one', testFn('one', 85)); |
| 39 | it.concurrent('two', testFn('two', 100, true)); |
no test coverage detected