Mock data in jest using react-dom/test-utils

后端 未结 0 1970
说谎
说谎 2021-01-30 07:42

Following react\'s docs on testing for data fetching, I want to mock some data in a test.

Component:

const Dashboard = () => {
  const [isLoading, setIs         


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