Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 628 Bytes

no-duplicate-modifiers.md

File metadata and controls

30 lines (20 loc) · 628 Bytes

Ensure tests do not have duplicate modifiers

Translations: Français

Prevent the use of duplicate test modifiers.

Fail

import test from 'ava';

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

Pass

import test from 'ava';

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