MtoBeObject
Bun

method

test.MatchersBuiltin.toBeObject

toBeObject(): void;

Asserts that a value is an object.

expect({}).toBeObject();
expect("notAnObject").not.toBeObject();
expect(NaN).not.toBeObject();