score:5

setInterval returns a number, not a function. Try:

expect(clearInterval).toHaveBeenCalledWith(expect.any(Number))

Also, as mentioned in my comment, is misspelled in your example (not sure if actual code).


Related Query

More Query from same tag