Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 529 Bytes

no-skip-test.md

File metadata and controls

35 lines (23 loc) · 529 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

import test from 'ava';

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

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

Pass

import test from 'ava';

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

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