mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-01-24 13:13:16 -05:00
fix vitest busy loops
This commit is contained in:
parent
38eba846f8
commit
77720a09e3
@ -9,5 +9,10 @@ export default defineConfig({
|
|||||||
environment: "jsdom",
|
environment: "jsdom",
|
||||||
globals: true,
|
globals: true,
|
||||||
setupFiles: ["./src/setupTests.ts"],
|
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",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user