How to supply header when mocking fetch?

前端 未结 0 1974
既然无缘
既然无缘 2021-02-11 02:48

I am trying to mock the fetch call in my create-react app but the test fails since it doesn\'t match the required headers.

Here is my code under test:

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