Skip to content

Commit

Permalink
chore: fix coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jul 7, 2024
1 parent 9ce708a commit 4aad1cb
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,9 @@ on:
push:
branches:
- main
- v1
- v2
pull_request:
branches:
- main
- v1
- v2

jobs:
ci:
Expand All @@ -29,3 +25,5 @@ jobs:
- run: pnpm build
- run: pnpm vitest --coverage
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# 🌳 rou3

<!-- automd:badges -->
<!-- automd:badges codecov -->

[![npm version](https://img.shields.io/npm/v/rou3)](https://npmjs.com/package/rou3)
[![npm downloads](https://img.shields.io/npm/dm/rou3)](https://npmjs.com/package/rou3)
[![codecov](https://img.shields.io/codecov/c/gh/unjs/rou3)](https://codecov.io/gh/unjs/rou3)

<!-- /automd -->

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"lint:fix": "automd && eslint --fix . && prettier -w src tests benchmark",
"playground": "pnpm jiti ./playground.ts",
"release": "pnpm test && pnpm build && changelogen --release && git push --follow-tags && npm publish",
"test": "pnpm lint && pnpm test:types && vitest run",
"test": "pnpm lint && pnpm test:types && vitest run --coverage",
"test:types": "tsc --noEmit"
},
"devDependencies": {
Expand Down
10 changes: 10 additions & 0 deletions vitest.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { defineConfig } from "vitest/config";

export default defineConfig({
test: {
typecheck: { enabled: true },
coverage: {
include: ["src/**/*.ts"]
},
},
});

0 comments on commit 4aad1cb

Please sign in to comment.