method
test.MatchersBuiltin.toBeInstanceOf
value: unknown
): R;
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