Skip to content

Commit f42af9a

Browse files
committed
test: parallel chromium and firefox is too much for github ci
1 parent 259532e commit f42af9a

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"scripts": {
4040
"build": "tsup",
4141
"dev": "tsup --watch --sourcemap",
42-
"test": "vitest run",
42+
"test": "vitest run --project Chromium && vitest run --project Firefox",
4343
"test:watch": "vitest --project Chromium --browser.provider preview --browser.headless=false",
4444
"lint": "eslint --cache --cache-location ./node_modules/.cache/eslint .",
4545
"typecheck": "tsc --noEmit"

vitest.config.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ export default defineConfig({
77
test: {
88
reporters: "verbose",
99

10-
// browser instances are running parallel, so they take 200% of the CPU count. Lower the amount to reduce resource usage
11-
maxWorkers: 1,
12-
minWorkers: 1,
13-
1410
browser: {
1511
enabled: true,
1612
provider: "playwright",

0 commit comments

Comments
 (0)