Make sure function from React.useContext is called in Jest

后端 未结 0 1848
刺人心
刺人心 2020-12-28 21:30

Given a custom hook that looks like this down below...

const getSavedInfo (id) => {
  const endpoint = getEndpoint(id)
  const {updateInfo} = React.useCont         


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