toBeObject

Bun

Symbol

Matchers.toBeObject

toBeObject(): void

Asserts that a value is an object.

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