jest/prefer-todo
eslint-plugin-jest
Safe autofix
eslint.config.js
import jest from "eslint-plugin-jest";
export default [
{
plugins: { jest },
rules: {
"jest/prefer-todo": "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/prefer-todo
eslint-plugin-jest
import jest from "eslint-plugin-jest";
export default [
{
plugins: { jest },
rules: {
"jest/prefer-todo": "error",
},
},
];jest/prefer-todo
jest plugin · style
{
"plugins": [
"jest"
],
"rules": {
"jest/prefer-todo": "error"
}
}Biome does not have this rule.
Prefer including a hint with external snapshots
Prefer mock resolved/rejected shorthands for promises