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();
});