DEV Community

Discussion on: How to mock Date with Jest

Collapse
 
stanleysathler profile image
Stanley Sathler • Edited

Unfortunately jest.useFakeTimers seems to not work well with native Promises, which means you can't use it in an async call.

github.com/facebook/jest/issues/10221