Closed
Description
Version
1.0.0-beta.18
Reproduction link
https://jsfiddle.net/cpxPratik/sa3yqznw/3/
Steps to reproduce
When shallowmounting or mounting, giving stubs
mounting option such as stubs: ['router-link']
.
What is expected?
Should not have any warning.
What is actually happening?
Warning on console: [Vue warn]: Unknown custom element: <router-link-stub> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
Doing VueTestUtils.config.stubs['router-link'] = '<div />'
solves it, but mounting option should have worked too unless i am misunderstanding sth. Warning was produced after updating from 1.0.0-beta.14 to 1.0.0-beta.16, there was not warning beforehand.