How to mock URLSearchParams and searchParams with Jest
Edit: I wrote an updated version of this article. Mocking usePathName, useSearchParams and useRouter...
Tags: nextjs, jest, urlsearchparams