diff --git a/tests/support/globalSetup.ts b/tests/support/globalSetup.ts index 893ec3f8a..b9dda2da4 100644 --- a/tests/support/globalSetup.ts +++ b/tests/support/globalSetup.ts @@ -14,7 +14,8 @@ import { startPalmHttpd, } from "@tests/support/fixtures.js"; import { createPeerManager } from "@tests/support/peerManager.js"; -import { heartwoodShortSha, tmpDir } from "./support"; +import { heartwoodShortSha, tmpDir } from "@tests/support/support.js"; +import { killAllProcesses } from "@tests/support/process.js"; const workspacePaths = [Path.join(tmpDir, "peers"), Path.join(tmpDir, "repos")]; @@ -64,6 +65,8 @@ export default async function globalSetup(_config: FullConfig): Promise { } else { await startPalmHttpd(); } + + return () => killAllProcesses(); } // Assert that the `rad` CLI is installed and has the correct version.