MtoBeInstanceOf
Bun

method

test.MatchersBuiltin.toBeInstanceOf

value: unknown
): void;

Asserts that the expected value is an instance of value

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