()
| 7 | |
| 8 | const dirs: string[] = []; |
| 9 | async function tmpDir(): Promise<string> { |
| 10 | const d = await fs.mkdtemp(path.join(os.tmpdir(), 'qx-atomic-')); |
| 11 | dirs.push(d); |
| 12 | return d; |
| 13 | } |
| 14 | afterEach(async () => { |
| 15 | while (dirs.length) await fs.rm(dirs.pop()!, { recursive: true, force: true }).catch(() => {}); |
| 16 | }); |
no test coverage detected