Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests fail when using injecting custom components globally #289

Open
iamBevan opened this issue Dec 5, 2022 · 0 comments
Open

Tests fail when using injecting custom components globally #289

iamBevan opened this issue Dec 5, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@iamBevan
Copy link

iamBevan commented Dec 5, 2022

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 iamBevan added the bug Something isn't working label Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant