()
| 16 | } |
| 17 | |
| 18 | export async function runExitCleanup() { |
| 19 | for (const fn of cleanupFunctions) { |
| 20 | try { |
| 21 | await fn(); |
| 22 | } catch (_) { |
| 23 | // Ignore errors during cleanup. |
| 24 | } |
| 25 | } |
| 26 | cleanupFunctions.length = 0; // Clear the array |
| 27 | } |
| 28 | |
| 29 | export async function cleanupCheckpoints() { |
| 30 | const tempDir = getProjectTempDir(process.cwd()); |
no outgoing calls
no test coverage detected