From 787e421815979059c422779f024d3f9bca907cd8 Mon Sep 17 00:00:00 2001 From: Christoph Pojer Date: Mon, 26 Oct 2015 17:01:41 -0700 Subject: [PATCH] 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 --- package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package.json b/package.json index 773e73fda..5521113bb 100644 --- a/package.json +++ b/package.json @@ -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/" ],