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
The tests should pass (like they did in 1.0.0-beta.20).
What is actually happening?
1) Parent.vue
contains Child:
AssertionError: expected false to be true
expected - actual
-false
true
The text was updated successfully, but these errors were encountered:
caugner
changed the title
shallowMount(Parent).contains(Child) returns false if Parent uses Child asynchronously (#853)
shallowMount(Parent).contains(Child) returns false if Parent uses Child as a dynamic component (#853)
Aug 1, 2018
I believe this was working previously as a side effect of not being stubbed correctly. When we create the stubs, we don't have enough information to create a stub that can be identified with a component selector, like you have in your example.
You can acheive this functionality by using mount:
Version
1.0.0-beta.23
Reproduction link
https://gitlab/mygroup/myproject
Steps to reproduce
Parent.spec.js
Parent.vue:
What is expected?
The tests should pass (like they did in
1.0.0-beta.20
).What is actually happening?
The text was updated successfully, but these errors were encountered: