-
Hello, I am writing a remark plugin and decided to write some tests. In the plugin, I have some validation logic that, when failing, calls Here's what Vitest says:
Here's the serialized error:
which matches what I pass into the When I try to "catch" the thrown error, it doesn't get caught. How is everyone handling these use cases ? Edit: The specific error I'm getting is this one:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Yes, |
Beta Was this translation helpful? Give feedback.
Your question has to do with Vite and how it deals with errors and how to use this chaining API.
I really strongly dislike chaining APIs such as this, because it makes everything so darn hard; so I don’t use it; so I am not an expert.
I like straight asserts: