(
method: ConsoleMethod,
implementation: (...args: unknown[]) => void = () => {},
)
| 79 | export type ConsoleMethod = 'debug' | 'error' | 'info' | 'log' | 'warn'; |
| 80 | |
| 81 | export function mockConsole( |
| 82 | method: ConsoleMethod, |
| 83 | implementation: (...args: unknown[]) => void = () => {}, |
| 84 | ): MockInstance { |
| 85 | return vi.spyOn(console, method).mockImplementation(implementation); |
| 86 | } |
| 87 | |
| 88 | function replaceProcessEnv(nextEnv: Record<string, string | undefined>): void { |
| 89 | for (const key of Object.keys(process.env)) { |
no outgoing calls
no test coverage detected
searching dependent graphs…