Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 429 Bytes

File metadata and controls

8 lines (7 loc) · 429 Bytes

How to add tests

  • Create your test file named after the scss lint your you are adding a stylelint rule for. For example, __tests___/unit/bang-format.test.mjs
  • Copy the code from one of the other tests into your test new file
  • Update the test so you have .scss code that will produce lint you want to test for
  • Look for warnings it generates
  • Copy expected text to test file
  • Run tests again and refine until they pass