From 4974a207ccf27c0ba089ba558128c4668f36deb2 Mon Sep 17 00:00:00 2001 From: Alex Krolick Date: Sun, 3 May 2020 20:23:40 -0700 Subject: [PATCH] Set resetMocks to true by default in jest config (#7899) --- packages/react-scripts/scripts/utils/createJestConfig.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react-scripts/scripts/utils/createJestConfig.js b/packages/react-scripts/scripts/utils/createJestConfig.js index fc4269918f..15bfac8b75 100644 --- a/packages/react-scripts/scripts/utils/createJestConfig.js +++ b/packages/react-scripts/scripts/utils/createJestConfig.js @@ -65,6 +65,7 @@ module.exports = (resolve, rootDir, isEjecting) => { 'jest-watch-typeahead/filename', 'jest-watch-typeahead/testname', ], + resetMocks: true, }; if (rootDir) { config.rootDir = rootDir;