Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 422 Bytes

no-unknown-modifiers.md

File metadata and controls

26 lines (17 loc) · 422 Bytes

Prevent the use of unknown test modifiers

Prevent the use of unknown test modifiers.

Fail

import tap from 'tap';

tap.onlu('some test', t => {});
test.only.onlu('some test', t => {});
test.beforeeach('some test', t => {});
test.skop('some test', t => {});

Pass

import tap from 'tap';

tap.only('some test', t => {});
tap.skip('some test', t => {});
tap.beforeEach('some test', t => {});