close

no-identical-title

Added in v0.7.3

Configuration

PresetConfigured Value
✅ rstestPlugin.configs.recommended"error"
rslint.config.ts
import { defineConfig, rstestPlugin } from '@rslint/core';

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

Rule Details

Requires unique static test and suite titles within the same scope. Distinct titles make failures and test reports unambiguous.

Test titles and suite titles are tracked separately. Dynamic titles and parameterized titles are ignored because their final values are created at runtime.

Incorrect

test('creates a user', () => {});
test('creates a user', () => {});

Correct

test('creates a user with a name', () => {});
test('rejects a user without a name', () => {});