Skip to content

Commit d2ede2e

Browse files
committed
add istanbul for test coverage. ignore coverage/ folder
1 parent 7bf7cc7 commit d2ede2e

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules/
2+
coverage/

.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
.gitignore
33
node_modules/
44
test/
5+
coverage/

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Parses and determines if a given CSS Media Query matches a set of values.",
55
"main": "index.js",
66
"scripts": {
7-
"test": "node_modules/.bin/mocha -R spec"
7+
"test": "istanbul cover -- ./node_modules/mocha/bin/_mocha test/ --reporter spec"
88
},
99
"repository": {
1010
"type": "git",
@@ -25,6 +25,7 @@
2525
"homepage": "https://github.com/ericf/css-media-match",
2626
"devDependencies": {
2727
"mocha": "~1.16.2",
28-
"chai": "~1.8.1"
28+
"chai": "~1.8.1",
29+
"istanbul": "~0.2.3"
2930
}
3031
}

0 commit comments

Comments
 (0)