Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mririgoyen/jest-runner-sasslint

Sass Lint runner for Jest
https://github.com/mririgoyen/jest-runner-sasslint

jest jest-plugin linter sass

Last synced: about 1 month ago
JSON representation

Sass Lint runner for Jest

Awesome Lists containing this project

README

        






jest-runner-sasslint


Sass Lint runner for Jest


## Usage

### Install

Install `jest` _(Jest 21+)_ and `jest-runner-sasslint`

```bash
yarn add --dev jest jest-runner-sasslint
```

### Add it to your Jest config

In your `package.json`
```json
{
"jest": {
"runner": "jest-runner-sasslint",
"displayName": "Sass Lint",
"testMatch": ["/src/**/*.scss"],
"moduleFileExtensions": ["scss"]
}
}
```

Or in `jest.config.js`
```js
module.exports = {
runner: 'jest-runner-sasslint',
displayName: 'Sass Lint',
testMatch: ['/src/**/*.scss'],
moduleFileExtensions: ['scss']
}
```

### Run Jest
```bash
yarn jest
```