[Vuejs]-ShallowMount one level deep

0👍

If you check the documentation of vue-test-utils, you can read that shallowMount stubs the child components but mount doesn’t so you can use it. Anyway, I have to question for you to consider it:
– why do you create a component just for a root div and another component, is this div really necessary?
– if the behaviour you want to test is not related to the parent component but rather to MyModal component, you should test its markup in its test and not in the one of the parent component.

Leave a comment