# prefer-todo

Rule `jest/prefer-todo`. Suggest using `test.todo`

- Source: jest
- Technologies: Testing
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #1762 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `jest/prefer-todo` | no | safe | package `eslint-plugin-jest` | [docs](https://github.com/jest-community/eslint-plugin-jest/blob/v29.17.2/docs/rules/prefer-todo.md) |
| Oxlint | `jest/prefer-todo` | no | safe | plugin `jest`, category style | [docs](https://oxc.rs/docs/guide/usage/linter/rules/jest/prefer-todo.html) |

## Enable it

### ESLint: `eslint.config.js`

```js
import jest from "eslint-plugin-jest";

export default [
  {
    plugins: { jest },
    rules: {
      "jest/prefer-todo": "error",
    },
  },
];
```

### Oxlint: `.oxlintrc.json`

```json
{
  "plugins": [
    "jest"
  ],
  "rules": {
    "jest/prefer-todo": "error"
  }
}
```

## Related rules

- [vitest/prefer-todo](https://lintradar.dev/rules/vitest/prefer-todo.md): Enforce using `test.todo`
- [jest/prefer-snapshot-hint](https://lintradar.dev/rules/jest/prefer-snapshot-hint.md): Prefer including a hint with external snapshots
- [jest/require-hook](https://lintradar.dev/rules/jest/require-hook.md): Require setup and teardown code to be within a hook
- [jest/prefer-mock-return-shorthand](https://lintradar.dev/rules/jest/prefer-mock-return-shorthand.md): Prefer mock return shorthands
- [jest/require-to-throw-message](https://lintradar.dev/rules/jest/require-to-throw-message.md): Require a message for `toThrow()`
- [jest/prefer-mock-promise-shorthand](https://lintradar.dev/rules/jest/prefer-mock-promise-shorthand.md): Prefer mock resolved/rejected shorthands for promises

---

Web page: https://lintradar.dev/rules/jest/prefer-todo. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
