We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.0.0-beta.16
https://github.com/doppelreim/vue-test-app/tree/test-route-in-child
Run ./node_modules/.bin/vue-cli-service test:unit
./node_modules/.bin/vue-cli-service test:unit
The test should not explode.
It does explode.
Error:
HelloWorld.vue [Vue warn]: Error in config.errorHandler: "TypeError: Cannot read property 'query' of undefined" TypeError: Cannot read property 'query' of undefined
The test tests HelloWorld.vue
HelloWorld.vue includes a child-component (TheChild.vue)
TheChild makes use of the router.
In the test, I inject a router-mock into the localvue.
My best guess is, that the injected routerMock is visible only in the component under test, and it is somehow not visible in the child-component?
(This is the same problem as #591 - that ticket was closed, but the issue is still there and I can not reopen it)
The text was updated successfully, but these errors were encountered:
I updated vue-test-utils to beta18 and vue to beta15 The issue still persists, though :/
beta18
beta15
Sorry, something went wrong.
This should be fixed in beta.19
@eddyerburgh I updated vue-test-utils to beta19. The issue still persists, though :/
vue-test-utils
beta19
No branches or pull requests
Version
1.0.0-beta.16
Reproduction link
https://github.com/doppelreim/vue-test-app/tree/test-route-in-child
Steps to reproduce
Run
./node_modules/.bin/vue-cli-service test:unit
What is expected?
The test should not explode.
What is actually happening?
It does explode.
Error:
The test tests HelloWorld.vue
HelloWorld.vue includes a child-component (TheChild.vue)
TheChild makes use of the router.
In the test, I inject a router-mock into the localvue.
My best guess is, that the injected routerMock is visible only in the component under test, and it is somehow not visible in the child-component?
(This is the same problem as #591 - that ticket was closed, but the issue is still there and I can not reopen it)
The text was updated successfully, but these errors were encountered: