ci: only disable threads for gh

This commit is contained in:
Evan You 2023-02-21 22:46:43 +08:00
parent c02d8d097d
commit 98f1934811
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,8 @@ export default defineConfig({
}, },
test: { test: {
globals: true, globals: true,
// disable threads on GH actions to speed it up
threads: !process.env.GITHUB_ACTIONS,
setupFiles: 'scripts/setupVitest.ts', setupFiles: 'scripts/setupVitest.ts',
environmentMatchGlobs: [ environmentMatchGlobs: [
['packages/{vue,vue-compat,runtime-dom}/**', 'jsdom'] ['packages/{vue,vue-compat,runtime-dom}/**', 'jsdom']