How to mock date inside a constructor in an Angular component using Jest?

前端 未结 0 1679
青春惊慌失措
青春惊慌失措 2021-01-08 00:48

I\'ve been looking at this for 2 hours now and cannot find a way to mock-override the current time from my Jest test case.

Here\'s my Jest test case:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题