How to supply header when mocking fetch?

前端 未结 0 386
灰色年华
灰色年华 2021-02-11 03:01

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:

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