Skip to content

Commit 9ac33ac

Browse files
committed
chore: Add coverage command
1 parent 0cbd8ce commit 9ac33ac

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
node-version: 20
3434
cache: 'npm'
3535
- run: npm ci
36-
- run: npm run test
36+
- run: npm run test:cov
3737

3838
build_app:
3939
name: build:app

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,13 @@ format: node_modules
3131
tests: node_modules
3232
npm run test
3333

34+
coverage: node_modules
35+
npm run test:cov
36+
3437
migrate: up
3538
npx prisma migrate dev --name init
3639

37-
.PHONY: up down dev build lint format tests migrate
40+
.PHONY: up down dev build lint format tests coverage migrate
3841

3942
# Aliases
4043
run: up dev

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"start": "next start",
99
"lint": "next lint",
1010
"format": "prettier --write .",
11-
"test": "jest"
11+
"test": "jest",
12+
"test:cov": "jest --coverage"
1213
},
1314
"dependencies": {
1415
"@prisma/client": "^6.12.0",

0 commit comments

Comments
 (0)