toBeOdd

Bun

Symbol

MatchersBuiltin.toBeOdd

toBeOdd(): void

Asserts that a number is odd.

expect(1).toBeOdd();
expect(2).not.toBeOdd();