method
test.Matchers.toBeInstanceOf
value: unknown
): void;
Asserts that a value is an instance of the given class or constructor.
expect([]).toBeInstanceOf(Array);
expect(null).toBeInstanceOf(Array); // failmethod
Asserts that a value is an instance of the given class or constructor.
expect([]).toBeInstanceOf(Array);
expect(null).toBeInstanceOf(Array); // fail