Jest transformer to run
.less
file in jest-electron or in node env.
- Install
$ npm i --save-dev jest-less-loader
- Configure
Update your jest configure, and add it into transform.
+ "transform": {
+ "\\.(less|css)$": "jest-less-loader"
+ },
MIT@hustcc.