Next.js Discord

Discord Forum

Next.js - Vitest or Jest? (Learning programming)

Unanswered
Great Skua posted this in #help-forum
Open in Discord
Great SkuaOP
Hey,

Tech Stack - NextJS 16, Typescript, Prisma 7, Postgres, Zod 4, RHF, Tailwindcss, ShadCN, Better-Auth, Resend, Vercel

So I'm self-studying programming, and I'm building a project to show on my cv.
I have a project that I'm building - eSports data for tournaments, matches and even predictions.
I have a side-project, with Nodejs and Playwright library, to scrape data from another website.

Now, I have to study and do tests.
I know Vitest is coming from Vite, but I'm using Next default bundler/compiler(?) - which is turbopack(?)

What should I pick, and why?
My thoughts - I should choose Jest because:

I already learn Playwright (the library only, for using chromium), so I'm going to use the Playwright E2E

Because I did not start with Vite

0 Replies