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, and this page is available as Markdown at https://rslint.rs/rules/jest/padding-around-describe-blocks.md.
close

padding-around-describe-blocks

Added in v0.9.2

Configuration

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

export default defineConfig([
  jestPlugin.configs.recommended,
  {
    rules: {
      'jest/padding-around-describe-blocks': 'error',
    },
  },
]);

Rule Details

Require a blank line before and after Jest suite statements, including describe, fdescribe, and xdescribe. No trailing blank line is required when the suite is the last statement in its scope.

Incorrect

const account = createAccount();
describe('account', () => {});
describe.skip('archived account', () => {});

Correct

const account = createAccount();

describe('account', () => {});

describe.skip('archived account', () => {});

Autofix

The rule inserts missing blank lines before and after suite statements.

Original Documentation