Skip to content

InverseAsymmetricMatchers incorrectly extends base Jest Expect #703

Open
@Woodz

Description

@Woodz

Within the base Jest namespace augmentation, the line
interface InverseAsymmetricMatchers extends Expect {}

says that InverseAsymmetricMatchers extends the augmented Expect interface (which combines base Jest Expect with jest-extended Expect). This means that code such as expect.not.anything() is valid, but this fails at runtime as anything is not implemented in either InverseAsymmetricMatchers.

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