Docs (4.0.0)
class NegatedAssertion method

toBeTypeOf

Asserts that the value is not of given type.

toBeTypeOf(typeStr: string): void

Example

// this succeeds:
expect(3).not.toBeTypeOf("string");

Related