Use .toBeInstanceOf(Class) to check that an object is an instance of a class. This matcher uses instanceof underneath.
.toBeInstanceOf(Class)
instanceof
class A {} expect(new A()).toBeInstanceOf(A); expect(() => {}).toBeInstanceOf(Function); expect(new A()).toBeInstanceOf(Function); // throws