Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 1.06 KB

File metadata and controls

30 lines (18 loc) · 1.06 KB

ava/no-duplicate-modifiers

📝 Disallow duplicate test modifiers.

❌ This rule is deprecated. Replaced by ava/no-invalid-modifier-chain which covers more cases.

🚫 This rule is disabled in the ✅ recommended config.

🔧 This rule is automatically fixable by the --fix CLI option.

Translations: Français

Prevent the use of duplicate test modifiers.

Examples

import test from 'ava';

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

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

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