Explorar o código

ci: avoid netlify oom

Evan You %!s(int64=3) %!d(string=hai) anos
pai
achega
213908cbde
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      vitest.config.ts

+ 2 - 1
vitest.config.ts

@@ -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']