> For AI agents: the complete documentation index is available at https://rslint.rs/llms.txt, the full documentation bundle is available at https://rslint.rs/llms-full.txt.

# no-identical-title

[Added in v0.5.3](https://github.com/web-infra-dev/rslint/releases/tag/v0.5.3)
## Configuration

| Preset                           | Configured Value |
| -------------------------------- | ---------------- |
| ✅ jestPlugin.configs.all         | `"error"`        |
| ✅ jestPlugin.configs.recommended | `"error"`        |


```ts title=rslint.config.ts
import { defineConfig, jestPlugin } from '@rslint/core';

export default defineConfig([
  jestPlugin.configs.recommended,
  {
    rules: {
      'jest/no-identical-title': 'error',
    },
  },
]);
```

## Rule Details

Disallow the same title for two tests or two `describe` blocks **in the same scope**. Only **static** first arguments count (plain strings / simple templates); dynamic titles and `*.each` calls are ignored.

Examples of **incorrect** code for this rule:

```javascript
describe("foo", () => {
  it("bar", () => {});
  it("bar", () => {});
});
describe("x", () => {});
describe("x", () => {});
```

Examples of **correct** code for this rule:

```javascript
describe("foo", () => {
  it("a", () => {});
  it("b", () => {});
  describe("foo", () => {}); // same as parent name, different scope
});
test("x" + n, () => {});
test("x" + n, () => {}); // not static — skipped
```

## Original Documentation

- [eslint-plugin-jest: no-identical-title](https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/no-identical-title.md)
- [Source code](https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/src/rules/no-identical-title.ts)
