Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Tests fail when using injecting custom components globally #289

Open
Labels
bugSomething isn't working
@iamBevan

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /