Home

Awesome

jest-url-loader

Similar with webpack's url-loader for Jest. Import url resource in jest-electron.

npm Version Build Status npm License

Usage

$ npm i --save-dev jest-url-loader

Update your jest configure, and add it into transform.

+    "transform": {
+      "\\.(jpg|jpeg|png|gif|svg)$": "jest-url-loader"
+    },

License

MIT@hustcc.