How to test function added to useMomo in reactjs

Viewed 20
const time = useMemo(() => getData(data), [data]);

I want to test this line in **.test.js file. But unable to do it. I am using "jest" and "react-test-library". Can anyone please suggest me how to do it?

0 Answers
Related