Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 398 Bytes

no-skip-test.md

File metadata and controls

33 lines (22 loc) · 398 Bytes

Ensure no tests are skipped

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 'tape';

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

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

Pass

import test from 'tape';

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

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