README
Imitation
A simple Jest moduleNameMapper for non-code imports. It helps for testing stuff like CSS Modules and images.
Usage with Jest
npm i --save-dev imitation
Then set it up in your jest.config.js
file:
{
"jest": {
// ... other config
"moduleNameMapper": {
"\\.(svg|png|jpg)