diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index 7dfa701..d51bb95 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -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 diff --git a/README.md b/README.md index 1f97f9a..9995800 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ npm run test 5. Test coverage: ```bash -npx vitest run --coverage +npm run coverage ``` 6. Format Code: diff --git a/package.json b/package.json index a6c280d..93b1805 100755 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "dev": "vite", "build": "vite build", "preview": "vite preview", + "coverage": "npx vitest run --coverage", "test": "vitest --watch=false", "deploy": "npm run add-version && npm run build && gh-pages -d dist", "add-version": "echo \"VITE_COMMIT_HASH=$(git rev-parse --short HEAD)\" > .env",