toBeNegative

Bun

Symbol

Matchers.toBeNegative

toBeNegative(): void

Asserts that a value is a negative number.

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