1.1.0 • Published 4 years ago
jest-transform-less v1.1.0
jest-transform-less
A Jest transformer which enables importing LESS into Jest's jsdom
. Based on jest-transform-css
⚠️ This package is experimental. ⚠️ Not working with
@imports
-right now
Setup
Installation
yarn add jest-transform-less --dev
Adding transform
Open jest.config.js
or package.json
and modify the transform
-property:
"transform": {
"^.+\\.js$": "babel-jest",
"^.+\\.less$": "jest-transform-less"
}