Using Testing Libary with useSWR
Two tricks to testing with Jest and useSWR
Published in
2 min readSep 13, 2020
useSWR makes developing performant and complex React applications a snap. In many cases, it can remove the need for a global state management solution like Redux or MobX.
We previously covered useSWR
on Frontend Digest, but this time we want to take a deeper dive into using useSWR
with React Testing Library.