Hooks.server.ts Testing: Mock resolve() #7499
Unanswered
MentalGear
asked this question in
Q&A
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.
-
Using (Vitest or Jest), how can one test if route protection/redirection is probably working within
hooks.server.ts
?Is there a way to mock the resolve function ?
Beta Was this translation helpful? Give feedback.
All reactions