Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 634 Bytes

no-skip-assert.md

File metadata and controls

29 lines (19 loc) · 634 Bytes

Ensure no assertions are skipped (ava/no-skip-assert)

💼 This rule is enabled in the ✅ recommended config.

Translations: Français

It's easy to make an assertion skipped with t.skip.xyz() and then forget about it.

Fail

const test = require('ava');

test('some title', t => {
	t.skip.is(1, 1);
});

Pass

const test = require('ava');

test('some title', t => {
	t.is(1, 1);
});