Skip to content

Commit 6e25fb6

Browse files
authoredApr 22, 2020
Merge pull request #68 from brettz9/coverage
- Testing: add nyc for checking coverage
2 parents a0ef3b0 + 24f74c8 commit 6e25fb6

File tree

4 files changed

+815
-6
lines changed

4 files changed

+815
-6
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.idea
22
/node_modules/
33
/lib
4+
coverage

‎.npmignore

+2
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
.travis.yml
33
/node_modules/
44
/src
5+
coverage
6+
.nyc_output

‎package-lock.json

+803-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+9-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,15 @@
1010
"build": "babel src --out-dir lib",
1111
"build:watch": "babel src --out-dir lib --watch",
1212
"lint": "eslint .",
13-
"test": "mocha --reporter tap",
13+
"test": "nyc mocha --reporter tap",
1414
"test:watch": "mocha --reporter tap --watch ./test ./"
1515
},
16+
"nyc": {
17+
"reporter": [
18+
"text",
19+
"html"
20+
]
21+
},
1622
"repository": {
1723
"type": "git",
1824
"url": "https://github.com/rburns/ansi-to-html.git"
@@ -83,7 +89,8 @@
8389
"@babel/preset-env": "^7.9.5",
8490
"chai": "~4.2.0",
8591
"eslint": "^6.8.0",
86-
"mocha": "^7.1.1"
92+
"mocha": "^7.1.1",
93+
"nyc": "^15.0.1"
8794
},
8895
"dependencies": {
8996
"entities": "^2.0.0"

0 commit comments

Comments
 (0)
Please sign in to comment.