Skip to content

Commit

Permalink
ci: update coverage config
Browse files Browse the repository at this point in the history
  • Loading branch information
asmyshlyaev177 committed Nov 21, 2024
1 parent 4b68309 commit cce2bef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
run: npm run test:exports

- name: Unit tests
run: npm run test:unit
run: npx tsc --noEmit && npx vitest --run --coverage
- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@89d6c85cfafaec52c72b6c5e8b2878d33104c699 # v1.3.0
continue-on-error: true
Expand Down
3 changes: 2 additions & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ export default defineConfig({
include: ["**/*.test.?(c|m)[jt]s?(x)"],
coverage: {
enabled: true,
include: ["packages/urlstate"],
provider: "istanbul",
reportsDirectory: "coverage-reports",
reportsDirectory: "./coverage-reports",
reporter: ["lcov", "json", "html"],
},
globals: true,
Expand Down

0 comments on commit cce2bef

Please sign in to comment.