From 98f1934811d8c8774cd01d18fa36ea3ec68a0a54 Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 21 Feb 2023 22:46:43 +0800 Subject: [PATCH] ci: only disable threads for gh --- vitest.config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vitest.config.ts b/vitest.config.ts index 2eab2be1865..e5d5f59345f 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -22,6 +22,8 @@ export default defineConfig({ }, test: { globals: true, + // disable threads on GH actions to speed it up + threads: !process.env.GITHUB_ACTIONS, setupFiles: 'scripts/setupVitest.ts', environmentMatchGlobs: [ ['packages/{vue,vue-compat,runtime-dom}/**', 'jsdom']