Skip to content

Commit

Permalink
Merge pull request facebook#1 from facebook/next
Browse files Browse the repository at this point in the history
Map (css|sass|scss) modules to identity-obj-proxy in jest (facebook#4419)
  • Loading branch information
Jack Zhao authored May 16, 2018
2 parents e6fd0d1 + 493a379 commit 966ae83
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 966ae83

Please sign in to comment.