Skip to content

Commit

Permalink
Map (css|sass|scss) modules to identity-obj-proxy in jest (#4419)
Browse files Browse the repository at this point in the history
  • Loading branch information
kusold authored and Timer committed May 16, 2018
1 parent 69cc07f commit 493a379
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-scripts/scripts/utils/createJestConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 493a379

Please sign in to comment.