# no-commented-out-tests

Rule `jest/no-commented-out-tests`. Disallow commented out tests

- Source: jest
- Technologies: Testing
- Kind: suspicious
- Needs type information: no
- Autofix: no
- Reach: 16.7M weekly downloads of presets that enable it
- Trend: +10.1% last quarter
- Rank: #660 by reach, #1467 by growth

## Linters

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

## Enable it

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

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

export default [
  {
    plugins: { jest },
    rules: {
      "jest/no-commented-out-tests": "error",
    },
  },
];
```

### Oxlint: `.oxlintrc.json`

```json
{
  "plugins": [
    "jest"
  ],
  "rules": {
    "jest/no-commented-out-tests": "error"
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Jest recommended](https://lintradar.dev/presets/jest-recommended.md) | ESLint | `eslint-plugin-jest` | 19 | 16.7M | +10.1% |

## Related rules

- [vitest/no-commented-out-tests](https://lintradar.dev/rules/vitest/no-commented-out-tests.md): Disallow commented out tests
- [jest/no-alias-methods](https://lintradar.dev/rules/jest/no-alias-methods.md): Disallow alias methods
- [jest/no-deprecated-functions](https://lintradar.dev/rules/jest/no-deprecated-functions.md): Disallow use of deprecated functions
- [jest/valid-title](https://lintradar.dev/rules/jest/valid-title.md): Enforce valid titles
- [jest/no-interpolation-in-snapshots](https://lintradar.dev/rules/jest/no-interpolation-in-snapshots.md): Disallow string interpolation inside snapshots
- [jest/no-standalone-expect](https://lintradar.dev/rules/jest/no-standalone-expect.md): Disallow using `expect` outside of `it` or `test` blocks

---

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