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
When using wrapper.find(...), the returned new wrapper only knows the selector if nothing was found. This makes it difficult to debug tests with dynamic selectors and to create custom matchers like expect(wrapper.find('.something')).toExist().
What does the proposed API look like?
Make Wrapper always have a selector property when created with .find(...)—not only ErrorWrapper (
I can't make any Promise yet but have to await my workload for the next month. Definitely interested in getting my feet wet at the Vue test utils beach though. 🏖
What problem does this feature solve?
When using
wrapper.find(...)
, the returned new wrapper only knows the selector if nothing was found. This makes it difficult to debug tests with dynamic selectors and to create custom matchers likeexpect(wrapper.find('.something')).toExist()
.What does the proposed API look like?
Make Wrapper always have a
selector
property when created with.find(...)
—not onlyErrorWrapper
(vue-test-utils/packages/test-utils/src/error-wrapper.js
Line 9 in 36adbf3
The text was updated successfully, but these errors were encountered: