add instanbul/nyc test coverage

This commit is contained in:
Michael C
2022-06-28 15:19:42 -04:00
parent 54db2c8c10
commit 931e3b8b11
4 changed files with 2539 additions and 0 deletions

3
.gitignore vendored
View File

@@ -45,3 +45,6 @@ working
.DS_Store
/.idea/
/dist/
# nyc coverage output
.nyc_output/

5
.nycrc.json Normal file
View File

@@ -0,0 +1,5 @@
{
"exclude": [
"src/routes/addUnlitedVideo.ts"
]
}

2529
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -5,6 +5,7 @@
"main": "src/index.ts",
"scripts": {
"test": "npm run tsc && ts-node test/test.ts",
"test:coverate": "nyc npm run test",
"dev": "nodemon",
"dev:bash": "nodemon -x 'npm test ; npm start'",
"postgres:docker": "docker run --rm -p 5432:5432 -e POSTGRES_USER=ci_db_user -e POSTGRES_PASSWORD=ci_db_pass postgres:alpine",
@@ -42,6 +43,7 @@
"eslint": "^8.3.0",
"mocha": "^9.1.3",
"nodemon": "^2.0.15",
"nyc": "^15.1.0",
"sinon": "^12.0.1",
"ts-mock-imports": "^1.3.8",
"ts-node": "^10.4.0",