Skip to content
masterclass Buddy

Jest · Matcher

toBeLessThanOrEqual

toBeLessThanOrEqual checks that a received number or BigInt is less than or equal to an expected value. Use it for inclusive upper limits.

Last updated

Syntax

expect(received).toBeLessThanOrEqual(expected)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • toBeLessThan
  • toBeGreaterThanOrEqual
  • toBeLessThanOrEqual
  • toBeCloseTo
  • expect(value)

Source: Expect · Jest. Checked 2026-11-03.