toBePositive

Bun

Symbol

Matchers.toBePositive

toBePositive(): void

Asserts that a value is a positive number.

expect(1).toBePositive();
expect(-3.14).not.toBePositive();
expect(NaN).not.toBePositive();