How to test a function in React Component with Jest + Enzyme?

前端 未结 0 1284
眼角桃花
眼角桃花 2020-12-19 08:47

I am using the testing-library/jest-dom + Enzyme to do the unit testing.and here I need to test a funtion inside a React function.

import React, { useEffect }         


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