From 493a379c21064a32a567b3b3fd13487264f71121 Mon Sep 17 00:00:00 2001 From: Mike Kusold Date: Tue, 15 May 2018 19:03:22 -0600 Subject: [PATCH] Map (css|sass|scss) modules to identity-obj-proxy in jest (#4419) --- packages/react-scripts/scripts/utils/createJestConfig.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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',