Skip to content

Commit f580529

Browse files
cameroncookeclaude
andcommitted
ref(config): Switch snapshot test pool from forks to threads
Use threads pool instead of forks for snapshot tests while keeping single-worker concurrency via maxThreads: 1. Threads have lower overhead than forked processes for these serialized test runs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2950381 commit f580529

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vitest.snapshot.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ export default defineConfig({
55
environment: 'node',
66
globals: true,
77
include: ['src/snapshot-tests/__tests__/**/*.test.ts'],
8-
pool: 'forks',
8+
pool: 'threads',
99
poolOptions: {
10-
forks: {
11-
maxForks: 1,
10+
threads: {
11+
maxThreads: 1,
1212
},
1313
},
1414
env: {

0 commit comments

Comments
 (0)