Skip to content

Commit

Permalink
Add collectCoverageFrom option to collect coverage on files without a…
Browse files Browse the repository at this point in the history
…ny tests. (facebook#961)
  • Loading branch information
mackbyte authored and alexdriaguine committed Jan 23, 2017
1 parent 930a7c7 commit cb63c09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/react-scripts/utils/createJestConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.exports = (resolve, rootDir, isEjecting) => {
const setupTestsFile = pathExists.sync(paths.testsSetup) ? '<rootDir>/src/setupTests.js' : undefined;

const config = {
collectCoverageFrom: ['src/**/*.{js,jsx}'],
moduleFileExtensions: ['jsx', 'js', 'json'],
moduleNameMapper: {
'^.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': resolve('config/jest/FileStub.js'),
Expand Down

0 comments on commit cb63c09

Please sign in to comment.