jest-runner-sasslint
v0.1.3
Published
Sass Lint runner for Jest
Downloads
11
Readme
Usage
Install
Install jest
(Jest 21+) and jest-runner-sasslint
yarn add --dev jest jest-runner-sasslint
Add it to your Jest config
In your package.json
{
"jest": {
"runner": "jest-runner-sasslint",
"displayName": "Sass Lint",
"testMatch": ["<rootDir>/src/**/*.scss"],
"moduleFileExtensions": ["scss"]
}
}
Or in jest.config.js
module.exports = {
runner: 'jest-runner-sasslint',
displayName: 'Sass Lint',
testMatch: ['<rootDir>/src/**/*.scss'],
moduleFileExtensions: ['scss']
}
Run Jest
yarn jest