I gave a presentation at the SagLacIO on how to setup jest testing in NextJS and deploy with Vercel.
The following project was created as part of this presentation:
The files you should be interested in:
The real solution
Thanks to @m0xx for pointing this out; Use NextJS examples directly instead:
npx create-next-app --example with-jest with-jest-app
Links from the presentation
If you have suggestions, feel free to poke me or open an issue.