jest function mocked from module doesn't detect its call when it is called by other method

后端 未结 0 1533
心在旅途
心在旅途 2020-12-16 09:11

I am testing my custom hook here. If signIn method is called, it calls history.push in any case.

// Test.js

import myHandler from "./useMyH         


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