toBeBoolean

Bun

Symbol

MatchersBuiltin.toBeBoolean

toBeBoolean(): void

Asserts that a value is a boolean.

expect(true).toBeBoolean();
expect(false).toBeBoolean();
expect(null).not.toBeBoolean();
expect(0).not.toBeBoolean();