What is happening under the hood that allows jest to mock a function that is called from outside the test file?

后端 未结 0 1566
再見小時候
再見小時候 2020-12-16 04:47

Here is an example on how to mock a function that is being called from outside the test file.

math.js

export const add      = (a, b) =>         


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