> 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.

# prefer-lowercase-title

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

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


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

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

Enforce lowercase test names.

Test and describe block titles should begin with a lowercase character. Uppercase initial letters are conventionally reserved for class names and named exports, not test descriptions.

## Options

This rule accepts an options object with the following properties:

### `ignore`

An array of strings specifying which functions to ignore. Valid values:

- `"describe"` — ignore all describe aliases (`describe`, `fdescribe`, `xdescribe`, `context`)
- `"test"` — ignore all test aliases (`test`, `xtest`)
- `"it"` — ignore all it aliases (`it`, `xit`, `fit`)

### `allowedPrefixes`

An array of prefixes. A title that starts with any of these prefixes is ignored.

### `ignoreTopLevelDescribe`

A boolean, default `false`. When `true`, top-level describe blocks are not checked.

### `ignoreTodos`

A boolean, default `false`. When `true`, calls with a `.todo` member are ignored.

## Incorrect

```js
it('Foo', function () {});
test('Bar', function () {});
describe('Baz', function () {});
```

## Correct

```js
it('foo', function () {});
test('bar', function () {});
describe('baz', function () {});
```

With `allowedPrefixes`:

```js
it('GET /live', function () {}); // allowed, starts with "GET"
```

## References

- [eslint-plugin-jest source](https://github.com/jest-community/eslint-plugin-jest/blob/main/src/rules/prefer-lowercase-title.ts)
