Writing unit tests for Next.js apps