diff --git a/packages/react-scripts/config/webpack.config.js b/packages/react-scripts/config/webpack.config.js index 2b1b3bbd47d..c9ce3ad74f4 100644 --- a/packages/react-scripts/config/webpack.config.js +++ b/packages/react-scripts/config/webpack.config.js @@ -752,7 +752,7 @@ module.exports = function (webpackEnv) { ], exclude: [ { file: '**/src/**/__tests__/**' }, - { file: '**/src/**/?(*.){spec|test}.*' }, + { file: '**/src/**/?(*.){spec,test}.*' }, { file: '**/src/setupProxy.*' }, { file: '**/src/setupTests.*' }, ],