(path: fs.PathOrFileDescriptor)
| 55 | let createHashMock: MockedFunction<typeof crypto.createHash>; |
| 56 | |
| 57 | function normalizeFsPath(path: fs.PathOrFileDescriptor): string { |
| 58 | if (path instanceof URL) { |
| 59 | return path.pathname; |
| 60 | } |
| 61 | |
| 62 | return String(path); |
| 63 | } |
| 64 | |
| 65 | afterEach(() => { |
| 66 | vi.restoreAllMocks(); |
no outgoing calls
no test coverage detected
searching dependent graphs…