# vitest/max-nested-describe 📝 Require describe block to be less than set max value or default value. ⚠️ This rule _warns_ in the 🌐 `all` config. ## Rule Details Examples of **incorrect** code for this rule with `max: 1`: ```js describe('outer', () => { describe('inner', () => { // ... }) }) ``` Examples of **correct** code for this rule: ```js describe('inner', () => { // ... }) ``` ## Options | Name | Description | Type | | :---- | :--------------------------------------------------- | :----- | | `max` | Maximum allowed nesting depth for `describe` blocks. | Number | > Default: `5` Maximum number of nested `describe` blocks. ```js { max: number } ```