-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Closed
Description
Version
3.0.1
Reproduction link
https://github.com/BerniWittmann/vue-test-navigation-guard-reproduction
Steps to reproduce
Run the tests with npm run test:unit
What is expected?
The specs in tests/unit/Home.spec.js should pass and calling wrapper.vm.beforeRouteUpdate should call the component navigation guard beforeRouteUpdate
What is actually happening?
The specs fail, because wrapper.vm.beforeRouteUpdate yiels undefined
I already asked a question on stackoverflow (without any solution). After providing the minimal reproduction this appears to be a bug, that only happens with mocha chai (and maybe karma jasmine) , but not with jest
Metadata
Metadata
Assignees
Labels
No labels