Skip to content

Component stubs stop working for grand children when registered globally #830

Closed
@andre-tebart

Description

@andre-tebart

Version

1.0.0-beta.20

Reproduction link

https://codesandbox.io/s/7krlyqn310

Steps to reproduce

  1. Have a look at the TestComponent.spec.js
  2. See how the stub for the child component works correctly and the test passes
  3. See how the stub for the grand child component does not work and the test fails

What is expected?

The test for the grand child should pass as it was stubbed.

What is actually happening?

The test fails because the stub does not apply.


This only seems to be an issue with components that are registered globally. The error did not occur when the sub-componentes were registered locally.

We experienced this bug when we upgraded from beta.16 to beta.20. The transition component which is stubbed per default suddenly stopped working in nested components.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions