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
I am using sveltekit and came upon a problem when testing. I am testing a function that uses sveltekit's error() function to create an HTTPError. When this error occurs unexpectedly inside my tests, vitest only reports "Unknown Error: undefined", which does not help finding the issue. The HttpError itself contains useful information like status code and message:
Describe the bug
I am using sveltekit and came upon a problem when testing. I am testing a function that uses sveltekit's error() function to create an HTTPError. When this error occurs unexpectedly inside my tests, vitest only reports "Unknown Error: undefined", which does not help finding the issue. The HttpError itself contains useful information like status code and message:
I'm not sure why, but maybe you check on that for a correct and useful error output.
Reproduction
https://stackblitz.com/edit/sveltejs-kit-template-default-j4trhh?file=src/lookhere.test.ts
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: