no-conditional-expect
UnreleasedConfiguration
rslint.config.ts
Rule Details
Disallow calling Rstest expect APIs conditionally. When an assertion only
runs on one branch, the test can pass without executing that assertion.
Examples of incorrect code:
The rule recognizes Rstest APIs from globals, @rstest/core,
import.meta.rstest, test context expect, Browser Mode expect.element,
and @rstest/playwright.
Examples of correct code:
The rule has no options and does not provide an automatic fix.