Skip to content

Commit

Permalink
Add coverage to npm test
Browse files Browse the repository at this point in the history
  • Loading branch information
dopry committed Sep 16, 2017
1 parent ed3851b commit cc0092a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "dist/cms.js",
"scripts": {
"start": "webpack-dev-server -d --config webpack.dev.js",
"test": "jest",
"test": "jest --coverage",
"test:watch": "jest --watch",
"build": "cross-env NODE_ENV=production webpack --config webpack.prod.js --display-error-details",
"build:scripts": "cross-env NODE_ENV=production webpack --config webpack.cli.js",
Expand Down Expand Up @@ -39,7 +39,11 @@
"moduleNameMapper": {
"^.+\\.(png|eot|woff|woff2|ttf|svg|gif)$": "<rootDir>/__mocks__/fileLoaderMock.js",
"^.+\\.s?css$": "<rootDir>/__mocks__/styleLoaderMock.js"
}
},
"mapCoverage": true,
"coverageReporters": ["lcov"],
"collectCoverageFrom": [ "src/**/*.js" ],
"coveragePathIgnorePatterns": [ "/__tests__/" ]
},
"keywords": [
"netlify",
Expand Down

0 comments on commit cc0092a

Please sign in to comment.