jest-community/jest-extended

`InverseAsymmetricMatchers` incorrectly extends base Jest Expect

Opened this issue · 0 comments

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.