Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove all React dependencies from enzyme #1084

Merged
merged 1 commit into from
Aug 21, 2017

Conversation

lelandrichardson
Copy link
Collaborator

to: @ljharb @aweary

This PR removes all react dependencies from the core enzyme library. In order to do this, the component "wrappers" were moved from enzyme into the adapters. This ends up cleaning up a number of things, and I think worked out rather nicely.

@lelandrichardson lelandrichardson force-pushed the lmr--remove-react-components branch 2 times, most recently from e63c3bb to 1364f2e Compare August 20, 2017 21:59
Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM pending comment.

@@ -117,7 +99,7 @@ class ReactWrapper {
privateSet(this, NODES, nodes);
}
this.length = this[NODES].length;
privateSet(this, COMPONENT, null);
// privateSet(this, COMPONENT, null);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uncomment, or delete?

@lelandrichardson lelandrichardson merged commit da91407 into master Aug 21, 2017
@lelandrichardson lelandrichardson deleted the lmr--remove-react-components branch August 21, 2017 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants