mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-29 04:35:36 +08: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:
committed by
facebook-github-bot-6
parent
3c730b1ce2
commit
787e421815
@@ -13,6 +13,10 @@
|
|||||||
"jest": {
|
"jest": {
|
||||||
"scriptPreprocessor": "jestSupport/preprocessor.js",
|
"scriptPreprocessor": "jestSupport/preprocessor.js",
|
||||||
"setupEnvScriptFile": "jestSupport/env.js",
|
"setupEnvScriptFile": "jestSupport/env.js",
|
||||||
|
"moduleNameMapper": {
|
||||||
|
"^image![a-zA-Z0-9$_-]+$": "GlobalImageStub",
|
||||||
|
"^[./a-zA-Z0-9$_-]+\\.png$": "RelativeImageStub"
|
||||||
|
},
|
||||||
"testPathIgnorePatterns": [
|
"testPathIgnorePatterns": [
|
||||||
"/node_modules/"
|
"/node_modules/"
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user