# usePlaywrightValidDescribeCallback

Rule `biome/usePlaywrightValidDescribeCallback`. Enforce valid `describe()` callback.

- Source: biome
- Technologies: Testing
- Kind: correctness
- Needs type information: no
- Autofix: no
- Reach: 30.6M weekly downloads of presets that enable it
- Trend: +109.3% last quarter
- Rank: #598 by reach, #233 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `correctness/usePlaywrightValidDescribeCallback` | yes | no | group correctness, since 2.4.2 | [docs](https://biomejs.dev/linter/rules/use-playwright-valid-describe-callback/) |

## Code examples

### Incorrect: the rule reports this

```js
test.describe('suite', async () => {
    test('one', async ({ page }) => {});
});
```

```js
test.describe('suite', (done) => {
    test('one', async ({ page }) => {});
});
```

### Correct: the rule accepts this

```js
test.describe('suite', () => {
    test('one', async ({ page }) => {});
    test('two', async ({ page }) => {});
});
```

```js
describe('suite', function() {
    test('one', async ({ page }) => {});
});
```

```js
test.describe(() => {
    test.use({ colorScheme: 'dark' });
    test('one', async ({ page }) => {});
});
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "correctness": {
        "usePlaywrightValidDescribeCallback": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Biome recommended](https://lintradar.dev/presets/biome-recommended.md) | Biome | `@biomejs/biome` | 491 | 28.5M | +106.8% |
| [Ultracite for Biome](https://lintradar.dev/presets/ultracite-biome.md) | Biome | `ultracite` | 616 | 2.1M | +151.7% |

## Related rules

- [biome/usePackageJsonValidLicense](https://lintradar.dev/rules/biome/usePackageJsonValidLicense.md): Require the `license` field in `package.json` to be a valid license.
- [biome/useQwikClasslist](https://lintradar.dev/rules/biome/useQwikClasslist.md): Prefer using the `class` prop as a classlist over the `classnames` helper.
- [biome/usePackageJsonValidEngines](https://lintradar.dev/rules/biome/usePackageJsonValidEngines.md): Enforce that the `engines` field in `package.json` is valid.
- [biome/useQwikLoaderLocation](https://lintradar.dev/rules/biome/useQwikLoaderLocation.md): Enforce that Qwik loader functions are declared in the correct location.
- [biome/usePackageJsonValidCpu](https://lintradar.dev/rules/biome/usePackageJsonValidCpu.md): Require the `cpu` field in `package.json` to be a valid list of processor types.
- [biome/useQwikMethodUsage](https://lintradar.dev/rules/biome/useQwikMethodUsage.md): Disallow `use*` hooks outside of `component$` or other `use*` hooks in Qwik applications.

---

Web page: https://lintradar.dev/rules/biome/usePlaywrightValidDescribeCallback. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
