H
Hono•2mo ago
JustUseFirefox

Looking for demo repo on how to implement tests

Hey there, Is there a demo repository out there that contain tests ? I'm looking for which command to put in my package.json, and some basic exemples on how to test routes, etc. Thanks!
6 Replies
Aditya Mathur
Aditya Mathur•2mo ago
You can use vitest and follow this - https://hono.dev/docs/helpers/testing
Testing Helper - Hono
Ultrafast web framework for Cloudflare Workers, Fastly Compute, Deno, Bun, Vercel, Node.js, and others. Fast, but not only fast.
Aditya Mathur
Aditya Mathur•2mo ago
Testing - Hono
Ultrafast web framework for Cloudflare Workers, Fastly Compute, Deno, Bun, Vercel, Node.js, and others. Fast, but not only fast.
JustUseFirefox
JustUseFirefox•2mo ago
Is vitest easier than jest? (the guide refer to jest so I'm wondering)
jastornaut
jastornaut•2mo ago
Found this repo the other day. Should cover most core testing usage: https://github.com/DavidHavl/hono-rest-api-starter
GitHub
GitHub - DavidHavl/hono-rest-api-starter
Contribute to DavidHavl/hono-rest-api-starter development by creating an account on GitHub.
Aditya Mathur
Aditya Mathur•2mo ago
I prefer vitest but you can use jest too Seems like they also use vitest 😆
JustUseFirefox
JustUseFirefox•2mo ago
You're an angel ! Thank you, that is exactly what I was looking for
Want results from more Discord servers?
Add your server