()
| 16 | const tmpRoots: string[] = []; |
| 17 | |
| 18 | function tempHome(): string { |
| 19 | const dir = mkdtempSync(join(tmpdir(), 'kimi-oauth-identity-')); |
| 20 | tmpRoots.push(dir); |
| 21 | return dir; |
| 22 | } |
| 23 | |
| 24 | afterEach(() => { |
| 25 | for (const dir of tmpRoots.splice(0)) { |