Skip to content

Commit 213908c

Browse files
committed
ci: avoid netlify oom
1 parent 7a0a665 commit 213908c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vitest.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ export default defineConfig({
2222
},
2323
test: {
2424
globals: true,
25-
threads: false,
25+
// if not using threads, Netlify goes OOM when generating coverage report
26+
threads: process.env.NETLIFY ? true : false,
2627
setupFiles: 'scripts/setupVitest.ts',
2728
environmentMatchGlobs: [
2829
['packages/{vue,vue-compat,runtime-dom}/**', 'jsdom']

0 commit comments

Comments
 (0)