Importing images breaks jest test
When you import image files, Jest tries to interpret the binary codes of the images as .js, hence runs into errors. The only way out is to mock a default response anytime jest sees an image import! How do we do this? first you tell Jest to run the mock file each time an image … Read more