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