toBeInstanceOf

Bun

Symbol

Matchers.toBeInstanceOf

toBeInstanceOf(value: unknown): void

Asserts that the expected value is an instance of value

expect([]).toBeInstanceOf(Array);
expect(null).toBeInstanceOf(Array); // fail