Skip to content

Commit a93fc96

Browse files
committed
chore: add maxworkers to vitest config
1 parent c12c967 commit a93fc96

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@
3838
"pretest": "rimraf coverage && npm run lint",
3939
"test": "npm run test:unit:cover && npm run test:types && npm run test:integration:cover && npm run test:size",
4040
"test:unit:cover": "npm run test:unit -- --coverage",
41-
"test:integration:cover": "npm run test:integration -- --coverage",
4241
"test:unit": "npx vitest --project unit --run",
4342
"test:types": "npx vitest --project types --run",
4443
"test:unit-watch": "npx vitest --project unit",
4544
"test:integration": "npx vitest --project integration --run --no-file-parallelism",
45+
"test:integration:cover": "npm run test:integration -- --coverage",
4646
"test:integration-watch": "npx vitest --project integration --no-file-parallelism",
4747
"test:browser": "npx playwright install && npx vitest --project browser-unit --run && npx vitest --project browser-integration --run",
4848
"test:version": "grep -r \"0.0.0-determined-by-semantic-release\" ./dist > /dev/null && echo \"version 0.0.0-determined-by-semantic-release found in output\" && exit 1 || exit 0",

vitest.workspace.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export default defineWorkspace([
4141
setupFiles: ['./vitest.setup.ts'],
4242
environment: 'node',
4343
maxConcurrency: 1,
44+
maxWorkers: 1,
4445
testTimeout: 60000,
4546
hookTimeout: 60000,
4647
bail: 100,

0 commit comments

Comments
 (0)