Skip to content

Commit

Permalink
Specify roots in Jest config (#7480)
Browse files Browse the repository at this point in the history
  • Loading branch information
mucsi96 authored and ianschmitz committed Aug 7, 2019
1 parent 914c95e commit ae671dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react-scripts/scripts/utils/createJestConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ module.exports = (resolve, rootDir, isEjecting) => {
: undefined;

const config = {
roots: ['<rootDir>/src'],

collectCoverageFrom: ['src/**/*.{js,jsx,ts,tsx}', '!src/**/*.d.ts'],

setupFiles: [
Expand Down

0 comments on commit ae671dc

Please sign in to comment.