Skip to content

Commit a59720a

Browse files
committed
Improved Code Coverage reporting
1 parent 9aeec1f commit a59720a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.nycrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"reporter": ["lcov", "text"],
3+
"exclude": ["babel-register.js", "test"],
4+
"include": ["src"]
5+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"build": "rm -rf dist*;rollup -c",
4141
"test": "NODE_ENV=test nyc ./node_modules/mocha/bin/mocha test/*.js",
4242
"startSampleApp": "yarn build && cd samples/sample-app/ && yarn install && node index.js",
43-
"report-coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov"
43+
"report-coverage": "codecov"
4444
},
4545
"repository": {
4646
"type": "git",

0 commit comments

Comments
 (0)