Skip to content

Commit bdd8cb0

Browse files
committed
build(vitest): try reverting to vitest@1 behaviors
1 parent 3d9cdce commit bdd8cb0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

vitest.config.ts

+8
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,19 @@ export default defineConfig({
2121
snapshotFormat: {
2222
escapeString: true,
2323
},
24+
// Pin to vitest@1 behavior: https://vitest.dev/guide/migration.html#default-pool-is-forks.
25+
// TODO(serhalp) Remove this and fix hanging `next-app-without-config` fixture on Windows.
26+
pool: 'threads',
2427
poolOptions: {
2528
threads: {
2629
singleThread: true,
2730
},
2831
},
32+
// Pin to vitest@1 behavior: https://vitest.dev/guide/migration.html#hooks-are-running-in-a-stack.
33+
// TODO(serhalp) Remove this and fix hanging `next-app-without-config` fixture on Windows.
34+
sequence: {
35+
hooks: 'parallel',
36+
},
2937
coverage: {
3038
provider: 'v8',
3139
reporter: ['text', 'lcov'],

0 commit comments

Comments
 (0)