-
Notifications
You must be signed in to change notification settings - Fork 665
Error not thrown inside computed property #1565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This could be to do with the custom error handler. https://github.com/vuejs/vue-test-utils/blob/dev/packages/test-utils/src/error.js. Vue (or VTU) could be swallowing the error. I have tried fixing this once before but no luck. Related: #1503 |
I actually do not think this is an issue with VTU, but instead Jest. I noticed in your code sandbox that an In short, this will work:
As well as a few other methods discussed here |
I think you might be correct. Might close this one, I don't think we can fix this in VTU; the above post should be a good enough work-around. |
Works perfect, thx! |
Uh oh!
There was an error while loading. Please reload this page.
Version
1.0.3
Reproduction link
https://codesandbox.io/s/naughty-hofstadter-qsycv?file=/src/components/HelloWorld.spec.js
Steps to reproduce
What is expected?
Error in computed property would be thrown
What is actually happening?
Error in computed property wouldn't be thrown
The text was updated successfully, but these errors were encountered: