Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 1.11 KB

File metadata and controls

38 lines (23 loc) · 1.11 KB

ava/no-unknown-modifiers

📝 Disallow unknown test modifiers.

❌ This rule is deprecated.

🚫 This rule is disabled in the ✅ recommended config.

💡 This rule is manually fixable by editor suggestions.

Translations: Français

Prevent the use of unknown test modifiers.

Examples

import test from 'ava';

test.onlu(t => {}); // ❌
test.only(t => {}); // ✅

test.seril(t => {});  // ❌
test.serial(t => {}); // ✅

test.beforeeach(t => {}); // ❌
test.beforeEach(t => {}); // ✅

test.unknown(t => {}); // ❌

test.always(t => {});       // ❌ `.always` requires `after` or `afterEach`
test.after.always(t => {}); // ✅

test.before.always(t => {});    // ❌ `.always` requires `after` or `afterEach`
test.afterEach.always(t => {}); // ✅