Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 492 Bytes

no-commented-out-tests.md

File metadata and controls

27 lines (18 loc) · 492 Bytes

Disallow commented out tests (vitest/no-commented-out-tests)

💼 This rule is enabled in the ✅ recommended config.

⚠️ This rule warns in the 🌐 all config.

Rule Details

This rule aims to prevent commented out tests.

Examples of incorrect code for this rule:

// test('foo', () => {
//   expect(1).toBe(1)
// })

Examples of correct code for this rule:

test('foo', () => {
  expect(1).toBe(1)
})