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

# padding-around-expect-groups

[Added in v0.9.2](https://github.com/web-infra-dev/rslint/releases/tag/v0.9.2)
## 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/padding-around-expect-groups': 'error',
    },
  },
]);
```

## Rule Details

Require a blank line around each consecutive group of `expect` statements. Adjacent assertions remain together without blank lines between them. Awaited `expect` statements are included.

## Incorrect

```js
const account = loadAccount();
expect(account.name).toBe('Ada');
expect(account.active).toBe(true);
saveAccount(account);
```

## Correct

```js
const account = loadAccount();

expect(account.name).toBe('Ada');
expect(account.active).toBe(true);

saveAccount(account);
```

## Autofix

The rule inserts missing blank lines at assertion-group boundaries.

## Original Documentation

- [eslint-plugin-jest: padding-around-expect-groups](https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/docs/rules/padding-around-expect-groups.md)
- [Source code](https://github.com/jest-community/eslint-plugin-jest/blob/v29.16.0/src/rules/padding-around-expect-groups.ts)
