Skip to content

Commit 9ab3f2a

Browse files
committed
workflow: edit npm scripts
1 parent 447dd8c commit 9ab3f2a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,10 @@
5252
],
5353
"scripts": {
5454
"dev": "esno ./scripts/dev.mts",
55-
"test-unit": "vitest run",
56-
"coverage": "vitest run --coverage",
55+
"test": "vitest run",
56+
"test:watch": "vitest",
57+
"test:coverage": "vitest run --coverage",
58+
"test:ui": "vitest --ui",
5759
"doc": "vitepress dev --open /README",
5860
"build": "vite build",
5961
"release": "esno ./scripts/release.mts",

scripts/release.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ async function release() {
2222
}
2323

2424
console.log(cyan('Unit testing...'))
25-
if (spawn.sync('pnpm', ['test-unit'], { stdio: 'inherit' }).status === 1) {
25+
if (spawn.sync('pnpm', ['test'], { stdio: 'inherit' }).status === 1) {
2626
return
2727
}
2828

0 commit comments

Comments
 (0)