Skip to content

False positive for no-standalone-expect when using expect.hasAssertions in beforeEach hook? #1606

Open
@SimonSchick

Description

@SimonSchick

As stated in https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/no-standalone-expect.md#rule-details
hasAssertions should NOT trigger this rule but it does currently?

image image

Eslint version: 8.57.0
Plugin version: 28.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions