Easily unit test any Next API route #19909
Unanswered
Xunnamius
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
✨
next-test-api-route-handler
✨ (npm)It's just an easier way to unit test API routes. Doesn't replace integration testing or E2E testing with a full Next instance, of course, but there are many advantages to unit testing your routes. For one, you can finally include them in your
lint-staged
/husky
pre-commit hooks and tighten that developer feedback loop 🤩.Beta Was this translation helpful? Give feedback.
All reactions