Skip to content

Commit 1702b9a

Browse files
committed
add test coverge
1 parent 9955b49 commit 1702b9a

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ test/public/css/master-*
66
npm-debug.log
77
*.DS_Store
88
*.npmignore
9+
.nyc_output
10+
coverage
911
node_modules
1012
test/node_modules
1113

.nycrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"branches": 100,
3+
"lines": 100,
4+
"functions": 100,
5+
"statements": 100
6+
}

package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "The Apostrophe Content Management System.",
55
"main": "index.js",
66
"scripts": {
7-
"test": "mocha && eslint .",
7+
"pretest": "npm run lint",
8+
"test": "nyc --reporter=html --check-coverage=true mocha",
89
"lint": "eslint ."
910
},
1011
"repository": {
@@ -110,6 +111,7 @@
110111
"eslint-plugin-node": "^6.0.1",
111112
"eslint-plugin-promise": "^3.8.0",
112113
"eslint-plugin-standard": "^3.1.0",
113-
"mocha": "^5.1.1"
114+
"mocha": "^7.1.2",
115+
"nyc": "^15.0.1"
114116
}
115117
}

0 commit comments

Comments
 (0)