How to mock a specific overload of a function with Jest in TypeScript?

前端 未结 0 1019
日久生厌
日久生厌 2020-12-05 04:17

I am using Jest to mock the fs.promises.readDir function. At first I created a mock with ts-jest and then tried to set up the mock as follows:



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