diff --git a/packages/react-scripts/scripts/utils/createJestConfig.js b/packages/react-scripts/scripts/utils/createJestConfig.js index 593d17090a..aa84d7637f 100644 --- a/packages/react-scripts/scripts/utils/createJestConfig.js +++ b/packages/react-scripts/scripts/utils/createJestConfig.js @@ -45,11 +45,11 @@ module.exports = (resolve, rootDir, srcRoots) => { }, transformIgnorePatterns: [ '[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs)$', - '^.+\\.module\\.css$', + '^.+\\.module\\.(css|sass|scss)$', ], moduleNameMapper: { '^react-native$': 'react-native-web', - '^.+\\.module\\.css$': 'identity-obj-proxy', + '^.+\\.module\\.(css|sass|scss)$': 'identity-obj-proxy', }, moduleFileExtensions: [ 'web.js',