no-mocks-import
Added in v0.7.2Configuration
rslint.config.ts
Rule Details
Disallows importing a manual mock directly from a __mocks__ directory. Tests should mock the original module path so Rstest controls which module instance is used.
The rule checks both import declarations and require() calls.