Skip to content

Commit 2cd1ddb

Browse files
committed
fix(vitest): limit workers and disable isolation in test pool
1 parent 0aabe4a commit 2cd1ddb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

vitest.config.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ export default defineConfig({
55
environment: "node",
66
// Run in a single worker-thread to avoid sandbox kill(2) issues
77
pool: "threads",
8-
poolOptions: {
9-
threads: { singleThread: true },
10-
},
8+
maxWorkers: 1,
9+
isolate: false,
1110
},
1211
resolve: {},
1312
});

0 commit comments

Comments
 (0)