# no-disabled-tests

Rule `vitest/no-disabled-tests`. Disallow disabled tests

- Source: vitest
- Technologies: Testing
- Kind: correctness
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 5.9M weekly downloads of presets that enable it
- Trend: +61.5% last quarter
- Rank: #1391 by reach, #692 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vitest/no-disabled-tests` | yes | no | package `@vitest/eslint-plugin` | [docs](https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-disabled-tests.md) |
| Oxlint | `vitest/no-disabled-tests` | no | no | plugin `vitest`, category correctness | [docs](https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-disabled-tests.html) |
| Biome | `suspicious/noSkippedTests` | no | unsafe | group suspicious, since 1.6.0 | [docs](https://biomejs.dev/linter/rules/no-skipped-tests/) |

## Code examples

### Incorrect: the rule reports this

```ts
test.skip('foo', () => {
  // ...
})
```

### Correct: the rule accepts this

```ts
test('foo', () => {
  // ...
})
```

Examples from the ESLint documentation.

## Enable it

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

```js
import vitest from "@vitest/eslint-plugin";

export default [
  {
    plugins: { vitest },
    rules: {
      "vitest/no-disabled-tests": "error",
    },
  },
];
```

### Oxlint: `.oxlintrc.json`

```json
{
  "plugins": [
    "vitest"
  ],
  "rules": {
    "vitest/no-disabled-tests": "error"
  }
}
```

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "suspicious": {
        "noSkippedTests": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Vitest recommended](https://lintradar.dev/presets/vitest-recommended.md) | ESLint | `@vitest/eslint-plugin` | 17 | 5.9M | +61.5% |

## Related rules

- [jest/no-disabled-tests](https://lintradar.dev/rules/jest/no-disabled-tests.md): Disallow disabled tests
- [vitest/no-conditional-expect](https://lintradar.dev/rules/vitest/no-conditional-expect.md): Disallow conditional expects
- [vitest/no-focused-tests](https://lintradar.dev/rules/vitest/no-focused-tests.md): Disallow focused tests
- [vitest/expect-expect](https://lintradar.dev/rules/vitest/expect-expect.md): Enforce having expectation in test body
- [vitest/no-standalone-expect](https://lintradar.dev/rules/vitest/no-standalone-expect.md): Disallow using `expect` outside of `it` or `test` blocks
- [vitest/valid-title](https://lintradar.dev/rules/vitest/valid-title.md): Enforce valid titles

---

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