()
| 105 | |
| 106 | /* @__NO_SIDE_EFFECTS__ */ |
| 107 | export function getWorkerState(): WorkerGlobalState { |
| 108 | // @ts-expect-error not typed global |
| 109 | const state = window.__vitest_worker__ |
| 110 | if (!state) { |
| 111 | throw new Error('Worker state is not found. This is an issue with Vitest. Please, open an issue.') |
| 112 | } |
| 113 | return state |
| 114 | } |
no outgoing calls
no test coverage detected