* 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>
20 lines
509 B
TypeScript
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',
|
|
},
|
|
};
|