Tests fail when using injecting custom components globally
iamBevan opened this issue · 0 comments
iamBevan commented
Describe the bug
Extending a globally registered component causes the tests associated with it to fail.
To Reproduce Steps to reproduce the behavior:
Extend a globally registered component:
Vue.use(
ComponentA,
{
customComponent: CustomComponent,
}
);Expected behavior
Once the components are registered in jest.setup.js, they should work as usual.
Related information:
@testing-library/vueversion: 5.8.3Vueversion: 2.6.14nodeversion: 16.15.1npm(oryarn) version: 8.11.0