Registry / testing / eslint-plugin-no-skip-tests

eslint-plugin-no-skip-tests

JSON →
library1.1.0jsnpmunverified

An ESLint plugin that enforces a rule against using describe.skip or it.skip in Mocha test suites. Version 1.1.0 is the current stable release, with no frequent updates. It differentiates itself by focusing solely on preventing skipped tests, complementing the sister plugin eslint-plugin-no-only-tests. Designed for teams that want to ensure no tests are accidentally skipped in CI.

npm install eslint-plugin-no-skip-tests
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-NO-S
E
eslint-plugin-no-skip-tests
testingjavascriptv1.1.0
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18–226 runs
build_error
glibc
node 18–226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Plugin
✓ plugins: ['no-skip-tests']
✗ plugins: ['eslint-plugin-no-skip-tests']
ESLint automatically adds the 'eslint-plugin-' prefix when referencing a plugin by its short name.
Rule: no-skip-tests
✓ rules: { 'no-skip-tests/no-skip-tests': 'error' }
✗ rules: { 'no-skip-tests': 'error' }
Rules must be prefixed with the plugin name/short name to avoid conflicts.
Plugin name (legacy)
✓ plugins: ['no-skip-tests']
✗ plugins: ['no-only-tests']
Do not confuse with eslint-plugin-no-only-tests, which enforces the opposite (no .only).

Configures the plugin in ESLint to error on describe.skip and it.skip calls.

// .eslintrc.json { "plugins": ["no-skip-tests"], "rules": { "no-skip-tests/no-skip-tests": "error" } } // test.js // eslint will error on the following: describe.skip('skipped suite', () => { it('test', () => {}); }); it.skip('skipped test', () => {}); // but will allow: describe('suite', () => { it('test', () => {}); });
Debug
Known issues
gotchaThe plugin does not support xdescribe or xit (alternate Mocha APIs), only describe.skip and it.skip.
fix
Use separate rule or plugin for xdescribe/xit, or add custom rule.
affects: <=1.1.0
gotchaThe default severity is 2 (error). To use as warning, set to 1.
fix
Set rule to 1 in config.
affects: >=1.0.0
Errors
Common errors & fixes
ESLint configuration in .eslintrc.json is invalid: 'no-skip-tests/no-skip-tests' is not found.
Plugin not loaded in 'plugins' section.
fix
Add 'no-skip-tests' to the plugins array.
Definition for rule 'no-skip-tests/no-skip-tests' was not found.
eslint-plugin-no-skip-tests is not installed.
fix
Run npm install --save-dev eslint-plugin-no-skip-tests.
Upgrade
Version history
1.1.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
eslint-plugin-no-skip-tests — npm install eslint-plugin-no-skip-tests · libregistry