`toBeInstanceOf(Number)` does not work in jest August 4, 2023 by Tarik expect(value).not.toBeNaN(); Edit: I would go with @bszoms solution: expect(typeof value).toBe('number')