diff --git a/packages/react-scripts/scripts/utils/createJestConfig.js b/packages/react-scripts/scripts/utils/createJestConfig.js index ff1c5811025..a8ef2d15af6 100644 --- a/packages/react-scripts/scripts/utils/createJestConfig.js +++ b/packages/react-scripts/scripts/utils/createJestConfig.js @@ -62,8 +62,8 @@ module.exports = (resolve, rootDir, isEjecting) => { ext => !ext.includes('mjs') ), watchPlugins: [ - 'jest-watch-typeahead/filename', - 'jest-watch-typeahead/testname', + require.resolve('jest-watch-typeahead/filename'), + require.resolve('jest-watch-typeahead/testname'), ], resetMocks: true, };