(prefix: string)
| 33 | const tempDirs: string[] = [] |
| 34 | |
| 35 | async function makeTempDir(prefix: string): Promise<string> { |
| 36 | const dir = await mkdtemp(path.join(os.tmpdir(), prefix)) |
| 37 | tempDirs.push(dir) |
| 38 | return dir |
| 39 | } |
| 40 | |
| 41 | afterEach(async () => { |
| 42 | await Promise.all(tempDirs.splice(0).map((dir) => rm(dir, { recursive: true, force: true }))) |
no outgoing calls
no test coverage detected