Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 594 Bytes

no-unknown-modifiers.md

File metadata and controls

30 lines (20 loc) · 594 Bytes

Prevent the use of unknown test modifiers

Translations: Français

Prevent the use of unknown test modifiers.

Fail

import test from 'ava';

test.onlu(t => {});
test.seril(t => {});
test.cb.onlu(t => {});
test.beforeeach(t => {});
test.unknown(t => {});

Pass

import test from 'ava';

test.only(t => {});
test.serial(t => {});
test.cb.only(t => {});
test.beforeEach(t => {});