Files
rrweb/vitest.config.ts
Copilot ec69594887 Fix Vitest hanging indefinitely with Vite 6 by using forks pool (#1760)
* Fix vitest hanging by using forks instead of threads pool

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Juice10 <4106+Juice10@users.noreply.github.com>
2026-04-01 12:00:00 +08:00

20 lines
509 B
TypeScript

export default {
test: {
/**
* Keeps old (pre-jest 29) snapshot format
* its a bit ugly and harder to read than the new format,
* so we might want to remove this in its own PR
*/
snapshotFormat: {
escapeString: true,
printBasicPrototype: true,
},
/**
* Use forks instead of threads for Vite 6 compatibility
* Vite 6 has issues with worker threads not cleaning up properly
* causing tests to hang indefinitely
*/
pool: 'forks',
},
};