Docs (4.0.0)
class NegatedAssertion method

toHaveProperty

Asserts that the value is an object that doesn’t include given property.

toHaveProperty(propertyName: string): Assertion<unknown>

Related