Skip to content

Enzyme and React 16 workarounds #11214

Closed
Closed
@oandregal

Description

@oandregal

This issue is to document the workarounds that we have in place to work with some of React 16 features that aren't supported by Enzyme yet. For reference, enzymejs/enzyme#1553 is where the enzyme project is tracking their support of React 16 features.

At the time of creating this issue, we're still using enzyme 3.3.0 and enzyme-adapter-react-16 1.1.1 but the latest releases are 3.7.0 and 1.6.0. Some of the issues may have been fixed.

  • Mock for forwardRef in Button.
  • BlockContros's skipped test.
  • Only supports the legacy context API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrameworkIssues related to broader framework topics, especially as it relates to javascript[Type] Automated TestingTesting infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions