()
| 4 | export type EventHandler = (...args: unknown[]) => unknown; |
| 5 | |
| 6 | export async function flushPromises(): Promise<void> { |
| 7 | const nodeTimers = await vi.importActual<typeof import("node:timers")>("node:timers"); |
| 8 | |
| 9 | return await new Promise(nodeTimers.setImmediate); |
| 10 | } |
| 11 | |
| 12 | // https://github.com/jestjs/jest/issues/6028#issuecomment-567669082 |
| 13 | export function defuseRejection<T>(promise: Promise<T>): Promise<T> { |
no outgoing calls
no test coverage detected