add instanbul for coverage

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

No files matched your search

+2
View File
@@ -2,3 +2,5 @@ node_modules
.env .env
*.log *.log
*.sh *.sh
.nyc_output
coverage
+8
View File
@@ -0,0 +1,8 @@
{
"all": true,
"include": ["**/*.js"],
"exclude": ["**/*.test.js"],
"reporter": ["html", "text", "lcov"],
"sourceMap": false,
"instrument": true
}
+1513 -32
View File
File diff suppressed because it is too large. Load diff
+2 -1
View File
@@ -4,7 +4,7 @@
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "mocha", "test": "nyc mocha",
"dev": "nodemon index.js" "dev": "nodemon index.js"
}, },
"keywords": [], "keywords": [],
@@ -37,6 +37,7 @@
}, },
"devDependencies": { "devDependencies": {
"nodemon": "3.1.0", "nodemon": "3.1.0",
"nyc": "17.1.0",
"sinon": "19.0.2" "sinon": "19.0.2"
} }
} }