Question · Vue.js course · Module 12: Testing & Deploy
mount() vs shallowMount()
What is the difference between mount() and shallowMount() in Vue Test Utils?
Answer options
- mount() renders the full child component tree, shallowMount() stubs child components
- shallowMount() is faster because it skips CSS styles
- mount() works only in a browser, shallowMount() in Node.js
- There is no difference - both methods are identical
You can check the correct answer by solving this task in the CodeWorlds game.