Created
January 2, 2021 00:52
-
-
Save trooperandz/da1c356e6a585639245803ce56607c7f to your computer and use it in GitHub Desktop.
React Native SVG Jest configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Jest mock configuration for SVG imports | |
module.exports = { | |
moduleNameMapper: { | |
"\\.svg": "<rootDir>/__mocks__/svgMock.js" | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment