Skip to content

tony19-sandbox/vue-router-mock-demo

Repository files navigation

Demo for https://stackoverflow.com/a/55544303/6277151

This demonstrates mocking vue-router in unit tests for a Vue CLI project. Run npm run test:unit to test.

Environment

  • Vue: 2.6.10
  • Vue CLI: 3.5.5
  • OS: macOS Mojave 10.14.2
  • Node: 11.12.0