Skip to content

Commit 1ed96f7

Browse files
committedFeb 4, 2020
Exclude generated files for all nyc runs through .nycrc file
1 parent f466059 commit 1ed96f7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
 

‎.nycrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"exclude": [
3+
"src/dotParser.js",
4+
"src/shapes.js"
5+
]
6+
}

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"test": "react-scripts test --env=jsdom --verbose=false",
5050
"test:coverage": "react-scripts test --env=jsdom --coverage --coverageDirectory=./coverage-jest",
5151
"integration-test": "cypress run --config video=false --browser=chrome --headless",
52-
"merge-coverage": "mkdir -p coverage && cp -p coverage-jest/coverage-final.json coverage/coverage-final-jest.json && cp -p coverage-cypress/coverage-final.json coverage/coverage-final-cypress.json && nyc report --exclude src/dotParser.js --exclude src/shapes.js --temp-dir coverage --report-dir coverage --reporter lcov --reporter clover --reporter json --reporter text",
52+
"merge-coverage": "mkdir -p coverage && cp -p coverage-jest/coverage-final.json coverage/coverage-final-jest.json && cp -p coverage-cypress/coverage-final.json coverage/coverage-final-cypress.json && nyc report --temp-dir coverage --report-dir coverage --reporter lcov --reporter clover --reporter json --reporter text",
5353
"eject": "react-scripts eject"
5454
},
5555
"homepage": ".",

0 commit comments

Comments
 (0)
Please sign in to comment.