ava/no-commented-tests
February 8, 2026 ยท View on GitHub
๐ Disallow commented-out tests.
โ ๏ธ This rule warns in the โ
recommended config.
Commented-out tests are invisible to the test runner and easy to forget about. Use test.skip() instead, which is visible in the test results.
Examples
import test from 'ava';
// โ
// test('foo', t => {
// t.pass();
// });
// โ
test.skip('foo', t => {
t.pass();
});