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:
Christoph Pojer 2015-10-26 17:01:41 -07:00 committed by facebook-github-bot-6
parent 3c730b1ce2
commit 787e421815
1 changed files with 4 additions and 0 deletions

View File

@ -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/"
],