fix vitest busy loops

This commit is contained in:
Scott Lamb 2023-12-30 11:59:24 -08:00
parent 38eba846f8
commit 77720a09e3
1 changed files with 5 additions and 0 deletions

View File

@ -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.
// <https://github.com/vitest-dev/vitest/issues/3077#issuecomment-1815767839>
pool: "forks",
},
});