https://cypress.io logo
Mocking vue-router when mount component
# i-need-help
w
I've got a component which is rendering tag and its "href" based on $route.params property. When im trying to mount component with cy.mount() tag is getting undefined. Is there any way to pass mocked $route to Vue instance? I saw that vue-test-utils has "mock" option which can be provided as option to mount command when tries to mount component, but there's no effect when trying to pass it in my cy.mount as option.