MtoBeTruthy
Bun

method

test.Matchers.toBeTruthy

toBeTruthy(): void;

Asserts that a value is "truthy".

To assert that a value equals true, use toBe(true) instead.

expect(true).toBeTruthy();
expect(1).toBeTruthy();
expect({}).toBeTruthy();