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…
Reference in New Issue