Skip to content

Commit e04eab4

Browse files
committed
Configure nyc to count coverage of the entire codebase
Not just what .spec.js files cover. Also exclude .spec.js files themselves from line-counting
1 parent c6a1c47 commit e04eab4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
"test": "nyc --reporter=text-summary npm run tape",
1414
"test:ci": "nyc --reporter=lcov npm run tape"
1515
},
16+
"nyc": {
17+
"all": true,
18+
"include": ["src/**/*.js"],
19+
"exclude": ["src/**/*.spec.js"]
20+
},
1621
"repository": {
1722
"type": "git",
1823
"url": "git+https://github.com/scriptype/writ-cms.git"
@@ -38,4 +43,4 @@
3843
"tap-spec": "^5.0.0",
3944
"tape": "^5.7.2"
4045
}
41-
}
46+
}

0 commit comments

Comments
 (0)