Skip to content

Commit 485973f

Browse files
committed
add NYC html output
1 parent 2bd856e commit 485973f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,5 @@ working
4747
/dist/
4848

4949
# nyc coverage output
50-
.nyc_output/
50+
.nyc_output/
51+
coverage/

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"main": "src/index.ts",
66
"scripts": {
77
"test": "npm run tsc && ts-node test/test.ts",
8-
"test:coverage": "nyc npm run test",
8+
"cover": "nyc npm run test",
9+
"cover:report": "nyc report --reporter=html",
10+
"cover:genreport": "nyc npm run test && nyc report --reporter=html",
911
"dev": "nodemon",
1012
"dev:bash": "nodemon -x 'npm test ; npm start'",
1113
"postgres:docker": "docker run --rm -p 5432:5432 -e POSTGRES_USER=ci_db_user -e POSTGRES_PASSWORD=ci_db_pass postgres:alpine",

0 commit comments

Comments
 (0)