MtoBePositive
Bun

method

test.MatchersBuiltin.toBePositive

toBePositive(): void;

Asserts that a value is a positive number.

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