Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
throwanem
· 4y ago · 0 comments
Can you use Vitest without Vite? It looks cool, I'd love to know more.
Comments
[–]
chain--
4y ago
Yup I've used Vitest without Vite for a personal project. I replaced Jest as I was having a lot of trouble with ESM modules (it might be better now)
[–]
throwanem
OP
4y ago
Thanks! I'll definitely take a closer look - "better than Jest" is a great place to start, but not if it means boiling an ocean first.
[–]
kasbah
4y ago
I'm pretty sure you can. Though I haven't tried it myself I did a search if we could integrate it into our Next.js app (Next uses Webpack internally) and found this:
https://github.com/elpnt/nextjs-vitest-example