Skip to content

Commit c5d5fd9

Browse files
committed
chore: standarize test scripts to always run non-interactive
1 parent dcb6b29 commit c5d5fd9

File tree

15 files changed

+20
-29
lines changed

15 files changed

+20
-29
lines changed

packages/astro/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@
5959
"lint:fix": "eslint . --fix",
6060
"lint:playground": "pnpm -r --parallel --filter='./playground/*' run lint",
6161
"lint:playground:fix": "pnpm -r --parallel --filter='./playground/*' run lint:fix",
62-
"test": "pnpm run test:unit:ci && pnpm run test:e2e",
63-
"test:unit": "vitest",
64-
"test:unit:ci": "vitest run",
62+
"test": "pnpm run test:unit && pnpm run test:e2e",
63+
"test:unit": "vitest run",
6564
"test:e2e": "start-server-and-test playground:test http://localhost:4321/ cy:run",
6665
"test:e2e-watch": "start-server-and-test playground:test http://localhost:4321/ cy:open",
6766
"cy:run": "cypress run",

packages/capi-client/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@
3232
"scripts": {
3333
"generate": "tsx scripts/generate.ts",
3434
"build": "tsdown",
35-
"test": "vitest",
36-
"test:ci": "vitest run",
35+
"test": "vitest run",
3736
"lint": "eslint .",
3837
"lint:fix": "eslint . --fix",
3938
"typecheck": "tsc --noEmit"

packages/cli/.release-it.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"releaseName": "v${version}"
88
},
99
"hooks": {
10-
"before:init": ["pnpm run lint", "pnpm test:ci"],
10+
"before:init": ["pnpm run lint", "pnpm test"],
1111
"after:bump": "pnpm run build",
1212
"after:git:release": "echo After git push, before github release",
1313
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."

packages/cli/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@
4242
"debug": "node --inspect-brk --loader tsx src/index.ts",
4343
"lint": "eslint .",
4444
"lint:fix": "eslint . --fix",
45-
"test": "vitest",
45+
"test": "vitest run",
4646
"test:types": "tsc --noEmit --skipLibCheck",
47-
"test:ci": "vitest run",
4847
"test:ui": "vitest --ui",
4948
"coverage": "vitest run --coverage"
5049
},

packages/js-client/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@
4141
"dev": "tsdown --watch",
4242
"build": "tsdown",
4343
"test:types": "tsc --noEmit --skipLibCheck",
44-
"test": "pnpm run test:unit:ci && pnpm run test:e2e",
45-
"test:unit": "vitest",
46-
"test:unit:ci": "vitest run",
44+
"test": "pnpm run test:unit && pnpm run test:e2e",
45+
"test:unit": "vitest run",
4746
"test:unit:ui": "vitest --ui",
4847
"test:e2e": "vitest run -c vitest.config.e2e.ts",
4948
"lint": "eslint .",

packages/js/.release-it.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"releaseName": "v${version}"
88
},
99
"hooks": {
10-
"before:init": ["pnpm run lint", "pnpm test:ci"],
10+
"before:init": ["pnpm run lint", "pnpm test"],
1111
"after:bump": "pnpm run build",
1212
"after:git:release": "echo After git push, before github release",
1313
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."

packages/js/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@
3131
"dev": "vite",
3232
"build": "vite build",
3333
"test:types": "tsc --noEmit --skipLibCheck",
34-
"test": "pnpm run test:unit:ci && pnpm run test:e2e",
35-
"test:unit": "vitest",
36-
"test:unit:ci": "vitest run",
34+
"test": "pnpm run test:unit && pnpm run test:e2e",
35+
"test:unit": "vitest run",
3736
"test:unit:ui": "vitest --ui",
3837
"test:e2e": "start-server-and-test cy:playground http://localhost:5173/ cy:run",
3938
"test:e2e-watch": "start-server-and-test cy:playground http://localhost:5173/ cy:open",

packages/live-preview/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"scripts": {
3939
"build": "tsdown",
4040
"dev": "tsdown --watch",
41-
"test": "vitest",
41+
"test": "vitest run",
4242
"lint": "eslint .",
4343
"lint:fix": "eslint . --fix",
4444
"typecheck": "tsc --noEmit",

packages/mapi-client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"scripts": {
4040
"generate": "tsx generate.ts",
4141
"build": "tsdown",
42-
"test": "vitest"
42+
"test": "vitest run"
4343
},
4444
"keywords": [],
4545
"author": "",

packages/react/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@
4242
"dev": "vite build --watch",
4343
"build": "vite build",
4444
"test:types": "tsc --noEmit --skipLibCheck",
45-
"test": "pnpm run test:unit:ci && pnpm run test:e2e-next-13 && pnpm run test:e2e-next-latest",
46-
"test:unit": "vitest",
47-
"test:unit:ci": "vitest run",
45+
"test": "pnpm run test:unit && pnpm run test:e2e-next-13 && pnpm run test:e2e-next-latest",
46+
"test:unit": "vitest run",
4847
"test:unit:ui": "vitest --ui",
4948
"test:e2e-next-13": "start-server-and-test playground:next-13 http://localhost:3000/ cy:run",
5049
"test:e2e-next-latest": "start-server-and-test playground:next-latest http://localhost:3000/ cy:run",

0 commit comments

Comments
 (0)