MtoBeGreaterThan
Bun

method

test.MatchersBuiltin.toBeGreaterThan

expected: number | bigint
): void;

Asserts that a value is a number and is greater than the expected value.

@param expected

the expected number

expect(1).toBeGreaterThan(0);
expect(3.14).toBeGreaterThan(3);
expect(9).toBeGreaterThan(9); // fail