# no-empty-test-title

Rule `sonarjs/no-empty-test-title`. Test and suite titles should not be empty or whitespace-only

- Source: sonarjs
- Technologies: JavaScript
- Kind: style
- Needs type information: no
- Autofix: no
- Reach: 6.2M weekly downloads of presets that enable it
- Trend: +62.1% last quarter
- Rank: #1265 by reach, #566 by growth

## Linters

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

## Enable it

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

```js
export default [
  {
    rules: {
      "sonarjs/no-empty-test-title": "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-empty-parameterized-test-dataset](https://lintradar.dev/rules/sonarjs/no-empty-parameterized-test-dataset.md): Parameterized tests should not have empty datasets
- [sonarjs/no-equals-in-for-termination](https://lintradar.dev/rules/sonarjs/no-equals-in-for-termination.md): Equality operators should not be used in "for" loop termination conditions
- [sonarjs/no-empty-group](https://lintradar.dev/rules/sonarjs/no-empty-group.md): Regular expressions should not contain empty groups
- [sonarjs/no-exclusive-tests](https://lintradar.dev/rules/sonarjs/no-exclusive-tests.md): Exclusive tests should not be committed to version control
- [sonarjs/no-empty-collection](https://lintradar.dev/rules/sonarjs/no-empty-collection.md): Empty collections should not be accessed or iterated
- [sonarjs/no-extra-arguments](https://lintradar.dev/rules/sonarjs/no-extra-arguments.md): Function calls should not pass extra arguments

---

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