Skip to content

Commit 333e04a

Browse files
committed
simplified code coverage launch
1 parent 1da4b63 commit 333e04a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@ $ npm test
6565
Also code coverage in the browser:
6666

6767
```
68-
cd coverage/lcov-report
69-
http-server
70-
open http://localhost:8080
68+
npm run coverage
7169
```
7270

7371
## Todo

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"main": "src/index.js",
66
"scripts": {
77
"test": "BABEL_JEST_STAGE=0 jest --coverage",
8+
"coverage": "cd coverage/lcov-report && open http://localhost:8080 && http-server",
89
"bundle": "broccoli build dist",
910
"start": "broccoli serve"
1011
},

0 commit comments

Comments
 (0)