add instanbul for coverage

This commit is contained in:
Alex Holliday
2024-10-10 21:48:17 +08:00
parent d757aabd57
commit 221a34906b
4 changed files with 1525 additions and 33 deletions

2
Server/.gitignore vendored
View File

@ -2,3 +2,5 @@ node_modules
.env
*.log
*.sh
.nyc_output
coverage

8
Server/.nycrc Normal file
View File

@ -0,0 +1,8 @@
{
"all": true,
"include": ["**/*.js"],
"exclude": ["**/*.test.js"],
"reporter": ["html", "text", "lcov"],
"sourceMap": false,
"instrument": true
}

1545
Server/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,7 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "mocha",
"test": "nyc mocha",
"dev": "nodemon index.js"
},
"keywords": [],
@ -37,6 +37,7 @@
},
"devDependencies": {
"nodemon": "3.1.0",
"nyc": "17.1.0",
"sinon": "19.0.2"
}
}