vue-testing-library icon indicating copy to clipboard operation
vue-testing-library copied to clipboard

Tests fail when using injecting custom components globally

Open iamBevan opened this issue 2 years ago • 0 comments

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/vue version: 5.8.3
  • Vue version: 2.6.14
  • node version: 16.15.1
  • npm (or yarn) version: 8.11.0

iamBevan avatar Dec 05 '22 17:12 iamBevan