()
| 31 | const testNameStorage = new AsyncLocalStorage<string>(); |
| 32 | |
| 33 | const run = async (): Promise<Circus.RunResult> => { |
| 34 | const {rootDescribeBlock, seed, randomize} = getState(); |
| 35 | jestExpect.setState({ |
| 36 | currentConcurrentTestName: () => testNameStorage.getStore(), |
| 37 | }); |
| 38 | const rng = randomize ? rngBuilder(seed) : undefined; |
| 39 | await dispatch({name: 'run_start'}); |
| 40 | await _runTestsForDescribeBlock(rootDescribeBlock, rng); |
| 41 | await dispatch({name: 'run_finish'}); |
| 42 | return makeRunResult( |
| 43 | getState().rootDescribeBlock, |
| 44 | getState().unhandledErrors, |
| 45 | ); |
| 46 | }; |
| 47 | |
| 48 | function* regroupConcurrentChildren( |
| 49 | children: Array<Circus.DescribeBlock | Circus.TestEntry>, |
no test coverage detected