Skip to content

hustcc/jest-less-loader

Repository files navigation

jest-less-loader

Jest transformer to run .less file in jest-electron or in node env.

npm Version Build Status Coverage Status npm License

Usage

  • Install
$ npm i --save-dev jest-less-loader
  • Configure

Update your jest configure, and add it into transform.

+    "transform": {
+      "\\.(less|css)$": "jest-less-loader"
+    },

License

MIT@hustcc.