toBeInteger

Bun

Symbol

Matchers.toBeInteger

toBeInteger(): void

Asserts that a value is a number, and is an integer.

expect(1).toBeInteger();
expect(3.14).not.toBeInteger();
expect(NaN).not.toBeInteger();