ESLint rule for catching focused/only test blocks
MIT License
Bot releases are hidden (Show)
Full Changelog: https://github.com/levibuzolic/eslint-plugin-no-only-tests/compare/v3.2.0...v3.3.0
Published by levibuzolic 2 months ago
fit
or xit
by @sualko in https://github.com/levibuzolic/eslint-plugin-no-only-tests/pull/44
Full Changelog: https://github.com/levibuzolic/eslint-plugin-no-only-tests/compare/v3.1.0...v3.2.0
Published by levibuzolic almost 2 years ago
Full Changelog: https://github.com/levibuzolic/eslint-plugin-no-only-tests/compare/v3.0.0...v3.1.0
Published by levibuzolic about 2 years ago
*
to optionally match blocks by prefix #35Full Changelog: https://github.com/levibuzolic/eslint-plugin-no-only-tests/compare/v2.6.0...v3.0.0
Published by levibuzolic over 3 years ago
Published by levibuzolic over 3 years ago
Published by levibuzolic almost 5 years ago
ava.default
) rules: {
'no-only-tests/no-only-tests': ['error', {
block: ['ava.default'],
focus: ['only']
}]
}
Will now raise lint errors for code that looks like:
ava.default.only(() => {})
Published by levibuzolic almost 5 years ago
Published by levibuzolic over 5 years ago
If you use a testing framework that uses an unsupported block name, or a different way of focusing test (something other than
.only
) you can specify an array of blocks and focus methods to match in the options.{ "rules": { "no-only-tests/no-only-tests": ["error", {"block": ["test", "it", "assert"], "focus": ["only", "focus"]}] } }
The above example will catch any uses of
test.only
,test.focus
,it.only
,it.focus
,assert.only
andassert.focus
.
Published by levibuzolic over 5 years ago
.only
blocks for serial
- #9 @IevgenRagulinPublished by levibuzolic over 5 years ago
.only
blocks for fixture
- #8 @roughyPublished by levibuzolic over 7 years ago
>=3.0.0
>=4.0.0
Published by levibuzolic over 7 years ago
Identifier
rather than CallExpression
Published by levibuzolic over 7 years ago
package.json
Published by levibuzolic over 7 years ago
Published by levibuzolic over 7 years ago
.only
blocks for test
, context
and tape