Skip to content

Commit c06079b

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 62914bc commit c06079b

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
@@ -6,10 +6,10 @@ export default defineConfig({
66
globals: true,
77
include: ['src/snapshot-tests/__tests__/**/*.test.ts'],
88
exclude: ['src/snapshot-tests/__tests__/**/*.flowdeck.test.ts'],
9-
pool: 'forks',
9+
pool: 'threads',
1010
poolOptions: {
11-
forks: {
12-
maxForks: 1,
11+
threads: {
12+
maxThreads: 1,
1313
},
1414
},
1515
env: {

0 commit comments

Comments
 (0)