Skip to content

Add rule disallowing importing jest #90

@SimenB

Description

@SimenB

See jestjs/jest#4613, this is apparently a footgun.

We might take it one step further an yell at all assignments to a jest object as it might mess up static analysis, thus negating hoisting of jest.mock?

But at least a rule for not importing jest (as it doesn't export anything) makes sense.

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