add instanbul for coverage
This commit is contained in:
1 parent
d757aabd57
commit
221a34906b
4 files changed
+1525
-33
No files matched your search
@@ -2,3 +2,5 @@ node_modules
|
|||||||
.env
|
.env
|
||||||
*.log
|
*.log
|
||||||
*.sh
|
*.sh
|
||||||
|
.nyc_output
|
||||||
|
coverage
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"all": true,
|
||||||
|
"include": ["**/*.js"],
|
||||||
|
"exclude": ["**/*.test.js"],
|
||||||
|
"reporter": ["html", "text", "lcov"],
|
||||||
|
"sourceMap": false,
|
||||||
|
"instrument": true
|
||||||
|
}
|
||||||
Generated
+1513
-32
File diff suppressed because it is too large.
Load diff
+2
-1
@@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user