How to write test-library tests for hono/jsx/dom hooks
Is there a recommended way to write tests for Hooks compatible with React mentioned in the docs?
Specifically, I'm seeing some behavior that is slightly different from React (or so I believe) and I'm trying to pull in testing-library/react in order to test my assumptions. However, I'm getting different and incompatible types, such as "Child" vs "ReactNode" in typescript.
It would be wonderful if someone could point me to "the right way" to do this, perhaps in documentation or an example hono + testing-library app.
Specifically, I'm seeing some behavior that is slightly different from React (or so I believe) and I'm trying to pull in testing-library/react in order to test my assumptions. However, I'm getting different and incompatible types, such as "Child" vs "ReactNode" in typescript.
It would be wonderful if someone could point me to "the right way" to do this, perhaps in documentation or an example hono + testing-library app.
React Testing Library builds on top of DOM Testing Library by adding
Web framework built on Web Standards for Cloudflare Workers, Fastly Compute, Deno, Bun, Vercel, Node.js, and others. Fast, but not only fast.