Skip to content

hustcc/jest-url-loader

Repository files navigation

jest-url-loader

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

npm Version Build Status npm License

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.