Skip to content

mririgoyen/jest-runner-sasslint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jest-runner-sasslint

Sass Lint runner for Jest

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

About

Sass Lint runner for Jest

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Contributors 3

  •  
  •  
  •