diff --git a/vite.config.ts b/vite.config.ts index 01c0e063..b9f6ab9d 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -16,6 +16,11 @@ export default defineConfig({ NO_COLOR: 'true', }, clearMocks: true, - pool: 'threads', + pool: + process.platform === 'linux' + ? // In Linux, we need to use forks mode to avoid segfaults + // https://vitest.dev/guide/common-errors.html#segfaults-and-native-code-errors + 'forks' + : 'threads', }, });