Skip to content

Commit

Permalink
chore: Fix test failure in Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
spring-raining committed Jan 14, 2025
1 parent 416f829 commit 1eae4a9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
});

0 comments on commit 1eae4a9

Please sign in to comment.