Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 538 Bytes

no-skip-test.md

File metadata and controls

34 lines (23 loc) · 538 Bytes

Ensure no tests are skipped

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