// Last line of defence: nothing this suite spawned may outlive it. // // The three layers above this one should make strays impossible — live jobs are // cancelled before /api/test/invalidate-cache drops the registry, the server // cancels them again on graceful shutdown, and each fake binary self-terminates // when it is orphaned. This hook exists because "should be impossible" is not // the same as "is", and because the failure mode is so expensive: orphaned // fixtures do not announce themselves, they just quietly make the next run slow // and flaky in ways that read like real regressions. // // Anything reaped here is logged as a regression, not as routine cleanup. import { dropTestExportOutLink } from "./exportOutLink"; import { sweepFixtureProcesses } from "./fixtureProcs"; export default async function globalTeardown() { await sweepFixtureProcesses("teardown"); await dropTestExportOutLink("teardown"); }