prefer-each
Added in v0.8.2Configuration
rslint.config.ts
Rule Details
Prefers parameterized Rstest registrations over manually registering tests, suites, or hooks inside a loop. .each keeps related cases together in test output and gives each case a clear title.
Loops used as ordinary test logic are allowed. When a loop registers one test, the diagnostic recommends test.each or it.each; loops that register suites, hooks, or several entries recommend describe.each.