Skip to content

injected router not passed to child-components #753

Closed
@doppelreim

Description

@doppelreim

Version

1.0.0-beta.20

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 router-mock used in mount should be available in the child-component.

What is actually happening?

It is not available.

Error:

HelloWorld.vue
[Vue warn]: Error in config.errorHandler: "TypeError: Cannot read property 'query' of undefined"
TypeError: Cannot read property 'query' of undefined

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 as #591 and #679. Those tickets were closed, but the issue still persists and I can not reopen them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions