# no-identical-title

Rule `vitest/no-identical-title`. Disallow identical titles

- Source: vitest
- Technologies: Testing
- Kind: suspicious
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 6.6M weekly downloads of presets that enable it
- Trend: +60.0% last quarter
- Rank: #1156 by reach, #715 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vitest/no-identical-title` | yes | safe | package `@vitest/eslint-plugin` | [docs](https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-identical-title.md) |
| Oxlint | `vitest/no-identical-title` | no | no | plugin `vitest`, category style | [docs](https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-identical-title.html) |
| Biome | `suspicious/noIdenticalTestTitle` | yes | no | group suspicious, since 2.4.12 | [docs](https://biomejs.dev/linter/rules/no-identical-test-title/) |

## Code examples

### Incorrect: the rule reports this

```js
it('is awesome', () => {
  /* ... */
})

it('is awesome', () => {
  /* ... */
})
```

### Correct: the rule accepts this

```js
it('is awesome', () => {
  /* ... */
})

it('is very awesome', () => {
  /* ... */
})
```

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-identical-title": "error",
    },
  },
];
```

### Oxlint: `.oxlintrc.json`

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

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "suspicious": {
        "noIdenticalTestTitle": "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% |
| [Anthony Fu's config](https://lintradar.dev/presets/antfu.md) | ESLint | `@antfu/eslint-config` | 294 | 758.7K | +49.9% |

## Related rules

- [jest/no-identical-title](https://lintradar.dev/rules/jest/no-identical-title.md): Disallow identical titles
- [vitest/no-import-node-test](https://lintradar.dev/rules/vitest/no-import-node-test.md): Disallow importing `node:test`
- [vitest/expect-expect](https://lintradar.dev/rules/vitest/expect-expect.md): Enforce having expectation in test body
- [vitest/no-conditional-expect](https://lintradar.dev/rules/vitest/no-conditional-expect.md): Disallow conditional expects
- [vitest/no-disabled-tests](https://lintradar.dev/rules/vitest/no-disabled-tests.md): Disallow disabled tests
- [vitest/no-focused-tests](https://lintradar.dev/rules/vitest/no-focused-tests.md): Disallow focused tests

---

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