How can I test my custom react hook that uses fetch?

前端 未结 0 1539
梦如初夏
梦如初夏 2020-12-11 01:21

I have created a custom react hook which uses fetch from whatwg-fetch. I have tests for the components that make use of the hook and can mock the whole hook, bu

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