# no-duplicate-parameterized-test-case

Rule `sonarjs/no-duplicate-parameterized-test-case`. Parameterized tests should not contain duplicate test cases

- Source: sonarjs
- Technologies: JavaScript
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 6.2M weekly downloads of presets that enable it
- Trend: +62.1% last quarter
- Rank: #1255 by reach, #556 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `sonarjs/no-duplicate-parameterized-test-case` | yes | safe | package `eslint-plugin-sonarjs` | [docs](https://rules.sonarsource.com/javascript/RSPEC-9078/) |

## Enable it

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

```js
export default [
  {
    rules: {
      "sonarjs/no-duplicate-parameterized-test-case": "error",
    },
  },
];
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [SonarJS recommended](https://lintradar.dev/presets/sonarjs-recommended.md) | ESLint | `eslint-plugin-sonarjs` | 230 | 6.2M | +62.1% |

## Related rules

- [sonarjs/no-duplicate-in-composite](https://lintradar.dev/rules/sonarjs/no-duplicate-in-composite.md): Union and intersection types should not include duplicated constituents
- [sonarjs/no-duplicate-test-title](https://lintradar.dev/rules/sonarjs/no-duplicate-test-title.md): Test titles should be unique within the same suite
- [sonarjs/no-delete-var](https://lintradar.dev/rules/sonarjs/no-delete-var.md): "delete" should be used only with object properties
- [sonarjs/no-duplicated-branches](https://lintradar.dev/rules/sonarjs/no-duplicated-branches.md): Two branches in a conditional structure should not have exactly the same implementation
- [sonarjs/no-default-utility-imports](https://lintradar.dev/rules/sonarjs/no-default-utility-imports.md): Default imports from modular utility libraries should not be used
- [sonarjs/no-element-overwrite](https://lintradar.dev/rules/sonarjs/no-element-overwrite.md): Collection elements should not be replaced unconditionally

---

Web page: https://lintradar.dev/rules/sonarjs/no-duplicate-parameterized-test-case. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
