mirror of
https://github.com/status-im/react-native.git
synced 2025-01-26 09:19:10 +00:00
Add moduleNameMapper config
Summary: This adds the moduleNameMapper config which corresponds to the same config in flow. public Reviewed By: voideanvalue Differential Revision: D2582879 fb-gh-sync-id: f116b86a7d4196c39faa366a521fe8401769b173
This commit is contained in:
parent
3c730b1ce2
commit
787e421815
@ -13,6 +13,10 @@
|
||||
"jest": {
|
||||
"scriptPreprocessor": "jestSupport/preprocessor.js",
|
||||
"setupEnvScriptFile": "jestSupport/env.js",
|
||||
"moduleNameMapper": {
|
||||
"^image![a-zA-Z0-9$_-]+$": "GlobalImageStub",
|
||||
"^[./a-zA-Z0-9$_-]+\\.png$": "RelativeImageStub"
|
||||
},
|
||||
"testPathIgnorePatterns": [
|
||||
"/node_modules/"
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user