Skip to content

Commit a3bb8d3

Browse files
authored
Add npm run coverage shortcut (#18)
2 parents 9526df1 + 7b8a7ec commit a3bb8d3

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/coverage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
run: npm ci
2727

2828
- name: Run tests with coverage
29-
run: npx vitest run --coverage
29+
run: npm run coverage
3030

3131
- name: Report coverage on PR
3232
uses: davelosert/vitest-coverage-report-action@v2

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"dev": "vite",
77
"build": "vite build",
88
"preview": "vite preview",
9+
"coverage": "npx vitest run --coverage",
910
"test": "vitest --watch=false",
1011
"deploy": "npm run add-version && npm run build && gh-pages -d dist",
1112
"add-version": "echo \"VITE_COMMIT_HASH=$(git rev-parse --short HEAD)\" > .env",

0 commit comments

Comments
 (0)