()
| 250 | async agent() { await inner?.shutdown(); }, |
| 251 | async observer() { if (listening) await observer.close(); }, |
| 252 | async resources() { |
| 253 | let journal: Journal; |
| 254 | try { journal = parseJournal(JSON.parse(await readFile(journalPath, "utf8"))); } |
| 255 | catch (error) { |
| 256 | if (error instanceof Error && "code" in error && error.code === "ENOENT") return; |
| 257 | throw new Error(`Reading cleanup journal: ${String(error)}`, { cause: error }); |
| 258 | } |
| 259 | progress("cleaning up live resources"); |
| 260 | await cleanupSuite(suite, journal, journalPath, context); |
| 261 | progress("cleanup complete"); |
| 262 | }, |
| 263 | async local() { await rm(home, { recursive: true }); }, |
| 264 | }, primary, journalPath); |
| 265 | } |
nothing calls this directly
no test coverage detected