Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 748 Bytes

no-unknown-modifiers.md

File metadata and controls

30 lines (20 loc) · 748 Bytes

Disallow the use of unknown test modifiers (ava/no-unknown-modifiers)

💼 This rule is enabled in the ✅ recommended config.

Translations: Français

Prevent the use of unknown test modifiers.

Fail

const test = require('ava');

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

Pass

const test = require('ava');

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