MtoBeArray
Bun

method

test.MatchersBuiltin.toBeArray

toBeArray(): void;

Asserts that a value is a array.

expect([1]).toBeArray();
expect(new Array(1)).toBeArray();
expect({}).not.toBeArray();