max-nested-describe
UnreleasedConfiguration
rslint.config.ts
Rule Details
Limits the depth of nested describe calls. Shallow suite hierarchies keep test names, reports, and inherited suite setup easier to understand.
The rule recognizes Rstest globals and APIs imported from @rstest/core, rstack/test, and @rstest/playwright, including aliases, namespace and CommonJS imports, import.meta.rstest, Playwright test.describe, parameterized suites, conditional suites, chained suite modifiers, and suite callbacks passed by reference. It does not treat similarly named APIs from other test frameworks or locally shadowed functions as Rstest suites.