Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 757 Bytes

no-duplicate-modifiers.md

File metadata and controls

29 lines (19 loc) · 757 Bytes

Ensure tests do not have duplicate modifiers (ava/no-duplicate-modifiers)

💼 This rule is enabled in the ✅ recommended config.

Translations: Français

Prevent the use of duplicate test modifiers.

Fail

const test = require('ava');

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

Pass

const test = require('ava');

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