forked from svrjs/svrjs
Add test coverage npm script and add "coverage" folder to .gitignore
This commit is contained in:
parent
fdb3e32091
commit
fb0da78488
2 changed files with 5 additions and 1 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -10,3 +10,6 @@ node_modules
|
||||||
package-lock.json
|
package-lock.json
|
||||||
yarn.lock
|
yarn.lock
|
||||||
bun.lockb
|
bun.lockb
|
||||||
|
|
||||||
|
# Test coverage
|
||||||
|
coverage
|
|
@ -9,6 +9,7 @@
|
||||||
"lint:fix": "npm run lint -- --fix",
|
"lint:fix": "npm run lint -- --fix",
|
||||||
"start": "node dist/svr.js",
|
"start": "node dist/svr.js",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
|
"test:coverage": "jest --coverage",
|
||||||
"test:middleware": "jest tests/middleware",
|
"test:middleware": "jest tests/middleware",
|
||||||
"test:utils": "jest tests/utils"
|
"test:utils": "jest tests/utils"
|
||||||
},
|
},
|
||||||
|
|
Reference in a new issue