Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 474 Bytes

File metadata and controls

31 lines (23 loc) · 474 Bytes

vitest/no-conditional-tests

📝 Disallow conditional tests.

⚠️ This rule warns in the 🌐 all config.

Rule Details

Examples of incorrect code for this rule:

describe('my tests', () => {
  if (true) {
    it('is awesome', () => {
      doTheThing()
    })
  }
})

Examples of correct code for this rule:

describe('my tests', () => {
  it('is awesome', () => {
    doTheThing()
  })
})