jest/valid-mock-module-path
eslint-plugin-jest
No autofix
eslint.config.js
import jest from "eslint-plugin-jest";
export default [
{
plugins: { jest },
rules: {
"jest/valid-mock-module-path": "error",
},
},
];No code example for this rule
The linters' documentation does not include one we could extract.
No tracked preset enables this rule, so it has no reach yet.
None of the tracked presets enable this rule. Turn it on with the config below.
jest/valid-mock-module-path
eslint-plugin-jest
import jest from "eslint-plugin-jest";
export default [
{
plugins: { jest },
rules: {
"jest/valid-mock-module-path": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Require that resolve and reject modifiers are present (and only) for promise-like types
Enforce unbound methods are called with their expected scope