Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 917 Bytes

File metadata and controls

30 lines (18 loc) · 917 Bytes

ava/no-duplicate-modifiers

📝 Disallow duplicate test modifiers.

❌ This rule is deprecated.

🚫 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 => {}); // ✅