vitest/no-commented-out-tests
January 2, 2026 ยท View on GitHub
๐ 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)
})