ci: avoid netlify oom

This commit is contained in:
Evan You 2023-02-03 17:50:20 +08:00
parent 7a0a6658c6
commit 213908cbde
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@ export default defineConfig({
},
test: {
globals: true,
threads: false,
// if not using threads, Netlify goes OOM when generating coverage report
threads: process.env.NETLIFY ? true : false,
setupFiles: 'scripts/setupVitest.ts',
environmentMatchGlobs: [
['packages/{vue,vue-compat,runtime-dom}/**', 'jsdom']