How to Mock `fs.promises.writeFile` with Jest

前端 未结 0 1486
逝去的感伤
逝去的感伤 2020-11-22 03:29

I am trying to mock the promise version of fs.writeFile using Jest, and the mocked function is not being called.

Function to be tested (

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