Closed
Description
Version
1.0.0-beta.28
Reproduction link
https://codesandbox.io/s/w75w7ko968
Steps to reproduce
- have an error in a destroy hook
- test this
What is expected?
The hook stops at the error and this gets thrown in the test
What is actually happening?
The hook stops at the error and the test does not know about the error
This is likely because Vue catches an error like this, and would show the red screen, but this is still something I'd like to catch in a test.
Likely we need to catch and rethrow the error in below code
vue-test-utils/packages/test-utils/src/wrapper.js
Lines 145 to 155 in c13cac3