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
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.
This too - https://hono.dev/docs/guides/testing
Testing - Hono
Ultrafast web framework for Cloudflare Workers, Fastly Compute, Deno, Bun, Vercel, Node.js, and others. Fast, but not only fast.
Is vitest easier than jest? (the guide refer to jest so I'm wondering)
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.
I prefer
vitest
but you can use jest
too
Seems like they also use vitest
😆You're an angel ! Thank you, that is exactly what I was looking for