We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bd593b commit a0efbebCopy full SHA for a0efbeb
packages/react-scripts/utils/createJestConfig.js
@@ -18,6 +18,7 @@ module.exports = (resolve, rootDir, isEjecting) => {
18
const setupTestsFile = pathExists.sync(paths.testsSetup) ? '<rootDir>/src/setupTests.js' : undefined;
19
20
const config = {
21
+ collectCoverageFrom: ['src/**/*.{js,jsx}'],
22
moduleFileExtensions: ['jsx', 'js', 'json'],
23
moduleNameMapper: {
24
'^.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': resolve('config/jest/FileStub.js'),
0 commit comments