Add code coverage (#701)

This commit is contained in:
Chris Barth
2022-06-22 15:11:14 -04:00
committed by GitHub
parent d47d9af78f
commit 6748c751c0
6 changed files with 976 additions and 15 deletions
+2
View File
@@ -6,6 +6,8 @@ yarn-error.log
.DS_Store
.eslintcache
.dir-locals.el
.nyc_output/
coverage/
## Local VS code settings and debug profiles
.vscode
+7
View File
@@ -0,0 +1,7 @@
{
"extends": "@istanbuljs/nyc-config-typescript",
"all": true,
"check-coverage": false,
"reporter": ["lcov", "text"],
"include": ["src/**"]
}
+2
View File
@@ -4,3 +4,5 @@ lib
package-lock.json
.eslintcache
.prettierignore
.nyc_output
coverage
+960 -5
View File
File diff suppressed because it is too large Load Diff
+4 -2
View File
@@ -43,7 +43,7 @@
"prettier-format": "prettier --config .prettierrc.json --write .",
"prettier-watch": "onchange -k -p 100 \".\" -- prettier --config .prettierrc.json --write {{file}}",
"release": "release-it",
"test": "npm run prettier-check && npm run lint && npm run tsc && mocha",
"test": "npm run prettier-check && npm run lint && npm run tsc && nyc mocha",
"test-watch": "mocha --watch",
"tsc": "tsc",
"tsc-watch": "tsc --watch",
@@ -59,6 +59,7 @@
},
"devDependencies": {
"@cjbarth/github-release-notes": "^1.0.1",
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@types/body-parser": "^1.19.2",
"@types/chai": "^4.3.1",
"@types/express-session": "^1.17.4",
@@ -79,13 +80,14 @@
"express": "^4.17.3",
"express-session": "^1.17.3",
"mocha": "^10.0.0",
"nyc": "^15.1.0",
"onchange": "^7.1.0",
"prettier": "^2.7.1",
"prettier-plugin-packagejson": "^2.2.18",
"release-it": "^14.14.3",
"request": "^2.83.0",
"sinon": "^14.0.0",
"ts-node": "^10.8.1",
"ts-node": "^10.8.0",
"typescript": "^4.7.3",
"xml2js": "^0.4.23"
},
+1 -8
View File
@@ -65,12 +65,5 @@
"skipLibCheck": true /* Skip type checking of declaration files. */,
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
},
"exclude": [
"node_modules",
"docs",
"lib",
"multiSamlStrategy.js",
"multiSamlStrategy.d.ts",
"test"
]
"exclude": ["node_modules", "docs", "lib", "test", "coverage"]
}