The difference between Vue-Test-Utils' "mount" and "shallowMount"? The difference between Vue-Test-Utils' "mount" and "shallowMount"? vue.js vue.js

The difference between Vue-Test-Utils' "mount" and "shallowMount"?


What the documentation means by "stubbed child components" is that every components within the tested one will not be rendered. Instead, you will have a placeholder component.

This prevent your tests to be parasite by other component's behaviors.

In my opinion, you should always shallow mount your components when doing unit tests, and simply mount them when doing tests in your entire application.