Why is the mock fetch method not applied? Fetch function to test is always resolving to catch error pathway

后端 未结 0 1155
-上瘾入骨i
-上瘾入骨i 2020-12-01 20:03

I have the following jest test. The test is always returning the null from the catch pathway, and I really don\'t understand why.

global.fetch = jest.fn(() =&         


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