Awesome
jest-url-loader
Similar with webpack's url-loader for Jest. Import url resource in jest-electron.
Usage
- Install
$ npm i --save-dev jest-url-loader
- Configure
Update your jest configure, and add it into transform.
+ "transform": {
+ "\\.(jpg|jpeg|png|gif|svg)$": "jest-url-loader"
+ },
License
MIT@hustcc.