Skip to content

Latest commit

Β 

History

History
25 lines (17 loc) Β· 517 Bytes

File metadata and controls

25 lines (17 loc) Β· 517 Bytes

ava/no-commented-tests

πŸ“ 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();
});