Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 548 Bytes

max-nested-describe.md

File metadata and controls

37 lines (26 loc) · 548 Bytes

Require describe block to be less than set max value or default value (vitest/max-nested-describe)

⚠️ This rule warns in the 🌐 all config.

Rule Details

Examples of incorrect code for this rule with max: 1:

describe('outer', () => {
	describe('inner', () => {
		// ...
	})
})

Examples of correct code for this rule:

describe('inner', () => {
	// ...
})

Options

Default: 5

Maximum number of nested describe blocks.

{
	max: number
}