How to stub methods in NextJS API routes? #14657
Unanswered
michaelmerrill
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all, I'm having trouble stubbing a method in an api route using NextJS and I was hoping someone could give me some guidance.
I want to stub the
validate
method on the Magic admin SDK. It seems like the magic instance I am stubbing in the test is not the same instance that the api handler is using. Any thoughts?Beta Was this translation helpful? Give feedback.
All reactions