Skip to content

ESLint: disallow importing Enzyme for React testing #34437

@ciampo

Description

@ciampo

Why

We should recommend using RTL instead of Enzyme for all new tests

What

We should add a ESLint rule to help enforce that

A/C

  • Add new ESLint rule
  • Disable rule in all existing files importing Enzyme

Originally posted by @gziolo in #34423 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Type] Automated TestingTesting infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.[Type] Code QualityIssues or PRs that relate to code quality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions