Skip to content

Rule proposal: Forbid the use .always when not used with after/afterEach #139

@jfmengels

Description

@jfmengels

Rule proposal: Forbid the use .always when not used with after/afterEach

I'm not sure what it does currently when you use always without the after modifier, but it is at least useless and confusing.

Fail

test.always(fn);
test.cb.always(fn);
test.always.cb(fn);

Valid

test.cb(fn);
test.after.always(fn);
test.always.after(fn);
test.afterEach.always(fn);
test.always.afterEach(fn);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions