📝 Disallow unknown test modifiers.
❌ This rule is deprecated.
🚫 This rule is disabled in the ✅ recommended config.
💡 This rule is manually fixable by editor suggestions.
Translations: Français
Prevent the use of unknown test modifiers.
import test from 'ava';
test.onlu(t => {}); // ❌
test.only(t => {}); // ✅
test.seril(t => {}); // ❌
test.serial(t => {}); // ✅
test.beforeeach(t => {}); // ❌
test.beforeEach(t => {}); // ✅
test.unknown(t => {}); // ❌
test.always(t => {}); // ❌ `.always` requires `after` or `afterEach`
test.after.always(t => {}); // ✅
test.before.always(t => {}); // ❌ `.always` requires `after` or `afterEach`
test.afterEach.always(t => {}); // ✅