How to test a component that has useSearchParams hook in NextJS?

One of the challenges you may face with NextJS is when testing component that uses NextJS built-in hooks such us useParams…