From 77720a09e30d3c41765e71c1957685051ba2c204 Mon Sep 17 00:00:00 2001 From: Scott Lamb Date: Sat, 30 Dec 2023 11:59:24 -0800 Subject: [PATCH] fix vitest busy loops --- ui/vitest.config.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/vitest.config.ts b/ui/vitest.config.ts index 2d07d89..f1bd0a1 100644 --- a/ui/vitest.config.ts +++ b/ui/vitest.config.ts @@ -9,5 +9,10 @@ export default defineConfig({ environment: "jsdom", globals: true, setupFiles: ["./src/setupTests.ts"], + + // This avoids node's native fetch from causing vitest workers to hang + // and use 100% CPU. + // + pool: "forks", }, });