This demonstrates mocking vue-router
in unit tests for a Vue CLI project. Run npm run test:unit
to test.
- Vue: 2.6.10
- Vue CLI: 3.5.5
- OS: macOS Mojave 10.14.2
- Node: 11.12.0
This demonstrates mocking vue-router
in unit tests for a Vue CLI project. Run npm run test:unit
to test.