Skip to content

Latest commit

History

History
47 lines (32 loc) 路 876 Bytes

File metadata and controls

47 lines (32 loc) 路 876 Bytes

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:

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

Examples of correct code for this rule:

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

Options

Name Description Type
max Maximum allowed nesting depth for describe blocks. Number

Default: 5

Maximum number of nested describe blocks.

{
  max: number
}