Jest: How to undo a global mock for certain tests in a file

后端 未结 0 1566
小鲜肉
小鲜肉 2020-12-22 03:28

I want to mock Math.random for certain tests and use its original implementation for other tests. How can I achieve this? I\'ve read about using jest.doMock and

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