Skip to content

Commit 4974a20

Browse files
authored
Set resetMocks to true by default in jest config (facebook#7899)
1 parent 790fba9 commit 4974a20

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/react-scripts/scripts/utils/createJestConfig.js

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ module.exports = (resolve, rootDir, isEjecting) => {
6565
'jest-watch-typeahead/filename',
6666
'jest-watch-typeahead/testname',
6767
],
68+
resetMocks: true,
6869
};
6970
if (rootDir) {
7071
config.rootDir = rootDir;

0 commit comments

Comments
 (0)