0.1.3 • Published 5 years ago

jest-runner-markdownlint v0.1.3

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Usage

Install

Install jest (Jest 21+) and jest-runner-markdownlint

yarn add --dev jest jest-runner-markdownlint

Add it to your Jest config

In your package.json

{
  "jest": {
    "runner": "jest-runner-markdownlint",
    "displayName": "Markdown Lint",
    "testMatch": ["<rootDir>/src/**/*.md"],
    "moduleFileExtensions": ["md"]
  }
}

Or in jest.config.js

module.exports = {
  runner: 'jest-runner-markdownlint',
  displayName: 'Markdown Lint',
  testMatch: ['<rootDir>/src/**/*.md'],
  moduleFileExtensions: ['md']
}

Run Jest

yarn jest