Skip to content

Commit

Permalink
Added nyc for Test coverage (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanMaRuiz authored Mar 6, 2020
1 parent 9949c6c commit a3115ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules
yarn.lock
.nyc_output/
coverage/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# psi [![Build Status](https://travis-ci.org/GoogleChromeLabs/psi.svg?branch=master)](https://travis-ci.org/GoogleChromeLabs/psi)
# psi [![Build Status](https://travis-ci.org/GoogleChromeLabs/psi.svg?branch=master)](https://travis-ci.org/GoogleChromeLabs/psi) [![NPM psi package](https://img.shields.io/npm/v/psi.svg)](https://npmjs.org/package/psi)

> PageSpeed Insights with reporting
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"node": ">=6"
},
"scripts": {
"test": "xo && mocha"
"test": "xo && mocha",
"coverage": "nyc --reporter=html --reporter=text mocha"
},
"files": [
"cli.js",
Expand Down Expand Up @@ -49,6 +50,7 @@
"devDependencies": {
"chai": "^4.2.0",
"mocha": "^6.0.2",
"nyc": "^14.1.1",
"xo": "^0.25.3"
},
"xo": {
Expand Down

0 comments on commit a3115ce

Please sign in to comment.