Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-plugin-no-skip-tests

romaingaillardjs50kMIT1.1.0

ESLint rule for describe.skip/it.skip in mocha tests

eslint, eslintplugin, eslint-plugin, mocha, rule, only, skip, describe, it

readme

eslint-plugin-no-skip-tests

Version

ESLint rule for describe.skip and it.skip in mocha tests.

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-no-skip-tests:

$ npm install eslint-plugin-no-skip-tests --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-no-skip-tests globally.

Usage

Add no-skip-tests to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": [
    "no-skip-tests"
  ]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "no-skip-tests/no-skip-tests": 2
  }
}