Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 982 Bytes

no-skip-test.md

File metadata and controls

39 lines (26 loc) · 982 Bytes

Ensure no tests are skipped (ava/no-skip-test)

💼 This rule is enabled in the ✅ recommended config.

🔧💡 This rule is automatically fixable by the --fix CLI option and manually fixable by editor suggestions.

Translations: Français

It's easy to make a test skipped with test.skip() and then forget about it. It's visible in the results, but still easily missed.

Fail

const test = require('ava');

test('foo', t => {
	t.pass();
});

test.skip('bar', t => {
	t.pass();
});

Pass

const test = require('ava');

test('foo', t => {
	t.pass();
});

test('bar', t => {
	t.pass();
});