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?
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?