Unit testing routes and middleware
How do you test things like
createServerFileRoute
and createMiddleware
?
one example of what i'm trying to do (this code doesn't work):
i looked in the tanstack start codebase and it seems like these primitives only have type-level tests currently.
does anyone have a working testing setup they can share?3 Replies
sensitive-blue•2w ago
I also want to know how to test middleware!!!
genetic-orange•2w ago
we will be adding test utilities for this after we reached stable status in start
sensitive-blue•2w ago
👍