()
| 8 | const tempDirs: string[] = [] |
| 9 | |
| 10 | async function makeVault(): Promise<string> { |
| 11 | const dir = await mkdtemp(path.join(os.tmpdir(), 'zen-dbmig-')) |
| 12 | tempDirs.push(dir) |
| 13 | await mkdir(path.join(dir, 'inbox'), { recursive: true }) |
| 14 | return dir |
| 15 | } |
| 16 | |
| 17 | afterEach(async () => { |
| 18 | await Promise.all(tempDirs.splice(0).map((d) => rm(d, { recursive: true, force: true }))) |
no outgoing calls
no test coverage detected