Dependency Mocks - A Secret Weapon for Vue Unit Tests - Vue.js Developers

If your Vue single-file components have dependencies, you'll need to handle the dependencies somehow when you unit test the component.


This is a companion discussion topic for the original entry at https://vuejsdevelopers.com/2019/09/16/mock-dependencies-jest-unit-test/