Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 560 Bytes

no-duplicate-modifiers.md

File metadata and controls

25 lines (17 loc) · 560 Bytes

Ensure tests do not have duplicate modifiers

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