Skip to content

Commit

Permalink
printing test coverage out to console for resolvers (#440)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmosher committed Jul 17, 2016
1 parent d89cd30 commit 7e5e0a9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ node_modules

# generated output
lib/
/.nyc_output/
**/.nyc_output/
5 changes: 3 additions & 2 deletions resolvers/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Node default behavior import resolution plugin for eslint-plugin-import.",
"main": "index.js",
"scripts": {
"test": "mocha"
"test": "nyc mocha"
},
"repository": {
"type": "git",
Expand All @@ -29,6 +29,7 @@
},
"devDependencies": {
"chai": "^3.4.1",
"mocha": "^2.3.4"
"mocha": "^2.3.4",
"nyc": "^7.0.0"
}
}
6 changes: 4 additions & 2 deletions resolvers/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Resolve paths to dependencies, given a webpack.config.js. Plugin for eslint-plugin-import.",
"main": "index.js",
"scripts": {
"test": "mocha -t 5s"
"test": "nyc mocha -t 5s",
"report": "nyc report --reporter=html"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -38,6 +39,7 @@
},
"devDependencies": {
"chai": "^3.4.1",
"mocha": "^2.3.3"
"mocha": "^2.3.3",
"nyc": "^7.0.0"
}
}

0 comments on commit 7e5e0a9

Please sign in to comment.