Skip to content

Commit a231096

Browse files
committed
build: Custom script for testing with coverage
1 parent b7df93e commit a231096

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- run: npm install -g pnpm@latest-10
1919
- run: pnpm i
2020
- run: pnpm run check
21-
- run: pnpm run test -- --coverage
21+
- run: pnpm run test:coverage
2222
- run: pnpm run build
2323

2424
- name: Integration test

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ lib/
1818

1919
# Only release tag contains dist directory
2020
/dist
21+
22+
# Ignore coverage files
23+
coverage/

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"scripts": {
44
"check": "biome migrate --write && biome check --fix",
55
"build": "ncc build --source-map --license licenses.txt src/index.ts",
6-
"test": "vitest"
6+
"test": "vitest",
7+
"test:coverage": "vitest run --coverage"
78
},
89
"type": "module",
910
"dependencies": {

0 commit comments

Comments
 (0)