mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-29 01:45:40 +08:00
Map (css|sass|scss) modules to identity-obj-proxy in jest (#4419)
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user