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
Run the unit tests (click on "Tests" at the bottom)
What is expected?
The mount function in the test will render the tabs component as it is seen in the browser on the right, with three li elements in the ul element representing the three child tab components.
What is actually happening?
In the tabs component, there is a created lifecycle hook:
created() {
this.tabs = this.$children;
}
This works in the browser, but $children is empty when rendered by vue-test-utils.
This results in the li elements (which are produced by iterating over this tabs data field) are not rendered.
The text was updated successfully, but these errors were encountered:
Version
1.0.0-beta.20
Reproduction link
https://codesandbox.io/s/q89qro9yq?module=%2Fsrc%2Fcomponents%2FTabs.spec.js
Steps to reproduce
What is expected?
The
mount
function in the test will render the tabs component as it is seen in the browser on the right, with threeli
elements in theul
element representing the three child tab components.What is actually happening?
In the tabs component, there is a created lifecycle hook:
This works in the browser, but
$children
is empty when rendered byvue-test-utils
.This results in the
li
elements (which are produced by iterating over thistabs
data field) are not rendered.The text was updated successfully, but these errors were encountered: