Skip to content

no-standalone-expect reports false positive when "test" is aliased #340

Open
@msorens

Description

Simply aliasing test to, for example, setup, causes an eslint violation "Expect must be inside of a test block". Any reason this should not be considered valid?

Minimal test case:

import { expect, test as setup } from '#test'
. . .
setup('authenticate', async ({ page, system }) => {
    expect(true).toBeTruthy()
})

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