Create a client and add a Provider to make a test with jest in code with use useQuery in Next.js

后端 未结 0 698
清酒与你
清酒与你 2021-01-03 11:08

i\'m trying to make a snapshot test in a code which use useQuery to get data from a cms.

I\'ve tried to mock the useQuery function without success, and the console ha

相关标签:
回答
  • 消灭零回复
自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题