Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 493 Bytes

File metadata and controls

27 lines (18 loc) · 493 Bytes

vitest/no-commented-out-tests

📝 Disallow 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)
})