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

Mention Enzyme on the test utils page. #6523

Merged
merged 1 commit into from Apr 15, 2016
Merged

Conversation

jimfb
Copy link
Contributor

@jimfb jimfb commented Apr 15, 2016

I've been seeing some good things about Enzyme lately (eg. #5204 (comment)). People seem to like it.

Obviously we're not ready to deprecate our own test utils in favor of Enzyme, but I think we're doing our users a disservice if we don't communicate it as an alternative (or at least something to be aware of). This adds a note encouraging people to check it out.

cc @spicyj @gaearon

@@ -12,6 +12,8 @@ next: clone-with-props.html
var ReactTestUtils = require('react-addons-test-utils');
```

>Note: Airbnb has a released a new testing utility called [Enzyme](http://airbnb.io/enzyme/), which makes it easy to assert, manipulate, and traverse your React Components' output. If you're deciding on a unit testing library, it's worth checking out: [http://airbnb.io/enzyme/](http://airbnb.io/enzyme/)
Copy link
Member

Choose a reason for hiding this comment

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

A couple things.

  1. I don't think this needs to be a "Note:" but if you're going to do it like that please format it correctly (this will render the entire text bold)
  2. Probably don't need to link to it twice
  3. Are there other testing libraries worth linking to?
  4. "... released a new ..." will get dated. Want to phrase it in a way that's a bit more timeless since we probably won't change this text for 3 years ;)

Copy link
Contributor Author

@jimfb jimfb Apr 15, 2016

Choose a reason for hiding this comment

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

  1. I was wondering why the note was bold :P. Fixed the boldness.
  2. Eeh, ok, fixed.
  3. Not really. I think it's pretty clear that Enzyme stands out as a frontrunner (in the context of React). Did another framework jump out as particularly noteworthy to you?
  4. Fixed.

@jimfb jimfb force-pushed the testutils-enzyme branch 2 times, most recently from ef6d2f7 to 9b000eb Compare April 15, 2016 22:47
@zpao
Copy link
Member

zpao commented Apr 15, 2016

👍

@gaearon
Copy link
Collaborator

gaearon commented Apr 15, 2016

Also been hearing very positive things about it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants