How do vue unit tests render subcomponents? You can only render the first layer with vue-test-utils, but not the second layer such as < el-button >?

as shown in the figure, mount only renders one layer. How does dom, render the second layer? Because the need for the table traversal after the simulation click, the second layer does not render can not get the elements, can not be traversed!


since all the element ui components mounted by createLocalvue, to vue are gone, you just need to register again

Menu