Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Teardown hanging processes in Vitest
Sebastian Martinez committed 2 years ago
commit e5dccba3ff4c545ce0375f005dfbe89b73daa36d
parent 82941440b99c9f8f85b654004392e3cb1a4e1e76
1 file changed +4 -1
modified 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<void> {
  } else {
    await startPalmHttpd();
  }
+

+
  return () => killAllProcesses();
}

// Assert that the `rad` CLI is installed and has the correct version.