(condition: unknown, property: string, name: string = property)
| 1668 | } |
| 1669 | |
| 1670 | function assert(condition: unknown, property: string, name: string = property): asserts condition { |
| 1671 | if (!condition) { |
| 1672 | throw new Error(`The ${name} was not set. It means that \`vitest.${property}\` was called before the Vite server was established. Await the Vitest promise before accessing \`vitest.${property}\`.`) |
| 1673 | } |
| 1674 | } |
| 1675 | |
| 1676 | export type OnServerRestartHandler = (reason?: string) => Promise<void> | void |
| 1677 | export type OnTestsRerunHandler = (testFiles: TestSpecification[]) => Promise<void> | void |
no outgoing calls