toBeTrue

Bun

Symbol

Matchers.toBeTrue

toBeTrue(): void

Asserts that a value is true.

expect(true).toBeTrue();
expect(false).not.toBeTrue();
expect(1).not.toBeTrue();