Skip to content

Commit

Permalink
Set resetMocks to true by default in jest config (#7899)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkrolick authored May 4, 2020
1 parent 790fba9 commit 4974a20
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/react-scripts/scripts/utils/createJestConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ module.exports = (resolve, rootDir, isEjecting) => {
'jest-watch-typeahead/filename',
'jest-watch-typeahead/testname',
],
resetMocks: true,
};
if (rootDir) {
config.rootDir = rootDir;
Expand Down

0 comments on commit 4974a20

Please sign in to comment.