Skip to content

Adding enzyme to React 16+ requires you to eject because you can't configure Jest further #3268

Closed
@wldcordeiro

Description

@wldcordeiro

Is this a bug report?

Nope

Which terms did you search for in User Guide?

Enzyme

Environment

  1. node -v: 8.4.0
  2. npm -v:
  3. yarn --version (if you use Yarn): 1.2.0
  4. npm ls react-scripts (if you haven’t ejected): 1.0.14

Then, specify:

  1. Operating system: OS X
  2. Browser and version (if relevant):

Expected Behavior

You can get a basic Enzyme setup without having to eject.

Actual Behavior

Adding enzyme to React 16+ requires you to eject because you can't configure Jest further to get enzyme's adapters setup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions