Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: npm ci

- name: Run tests with coverage
run: npx vitest run --coverage
run: npm run coverage

- name: Report coverage on PR
uses: davelosert/vitest-coverage-report-action@v2
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ npm run test

5. Test coverage:
```bash
npx vitest run --coverage
npm run coverage
```

6. Format code:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"build": "vite build",
"preview": "vite preview",
"test": "vitest --watch=false",
"coverage": "npx vitest run --coverage",
"deploy": "npm run add-version && npm run build && gh-pages -d dist",
"add-version": "echo \"VITE_COMMIT_HASH=$(git rev-parse --short HEAD)\" > .env",
"format": "prettier --check 'src/**/*.{js,jsx}' 'tests/**/*.{js,jsx}'",
Expand Down