You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
here's a medium article for testing api routes with jest. not sure if this is still considered the best, considering that the community seems to be moving towards vitest
I've added a sample unit test for the API, but not sure if we can do anything more in the boilerplate. Triggering webhooks with test data will result in unintended database mutations.
If you can think of a way to expand this new setup, I'm open to reviewing a PR!
Is your feature request related to a problem? Please describe.
Can you please write a guide for testing api routes?
Describe the solution you'd like
Some sort of example of an api route and its test
Describe alternatives you've considered
The text was updated successfully, but these errors were encountered: