no-focused-tests
Added in v0.8.1Configuration
rslint.config.ts
Rule Details
Disallow focused Rstest tests and describe blocks. The rule reports an
explicit .only in a test or suite registration, including conditional,
parameterized, and extended test APIs.
The rule recognizes Rstest globals, @rstest/core, import.meta.rstest, and
@rstest/playwright. It follows same-file const aliases, including aliases
that store an already-focused API.
The rule provides a suggestion that removes every .only contributing to the
registration. Suggestions preserve comments and optional-chain boundaries.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
Rstest does not expose Jest's fit or fdescribe aliases, so this rule does
not treat those names as Rstest registrations.