Merge pull request #477 from mchangrh/coverage-nyc

add instanbul/nyc test coverage
This commit is contained in:
Ajay Ramachandran
2022-07-12 23:14:35 -04:00
committed by GitHub
4 changed files with 2539 additions and 0 deletions

3
.gitignore vendored
View File

@@ -45,3 +45,6 @@ working
.DS_Store .DS_Store
/.idea/ /.idea/
/dist/ /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", "main": "src/index.ts",
"scripts": { "scripts": {
"test": "npm run tsc && ts-node test/test.ts", "test": "npm run tsc && ts-node test/test.ts",
"test:coverate": "nyc npm run test",
"dev": "nodemon", "dev": "nodemon",
"dev:bash": "nodemon -x 'npm test ; npm start'", "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", "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", "eslint": "^8.3.0",
"mocha": "^9.1.3", "mocha": "^9.1.3",
"nodemon": "^2.0.15", "nodemon": "^2.0.15",
"nyc": "^15.1.0",
"sinon": "^12.0.1", "sinon": "^12.0.1",
"ts-mock-imports": "^1.3.8", "ts-mock-imports": "^1.3.8",
"ts-node": "^10.4.0", "ts-node": "^10.4.0",