How to effectively test your Next.js applications with Jest