-
Notifications
You must be signed in to change notification settings - Fork 47.2k
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
Add ReactTestUtils to addons #1112
Conversation
|
|
||
#### Simulate.{eventName}({ReactComponent|DOMElement} element, object nativeEventData) | ||
|
||
Simulate an event dispatch on a React component instance or browser DOM node with optional `nativeEventData` event data. This uses React's synthetic event system so it works outside of the browser. **This is possibly the single most useful utility in `ReactTestUtils`.** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This uses React's synthetic event system
This statement isn't true yet, need #939 first.
|
||
Simulate an event dispatch on a React component instance or browser DOM node with optional `nativeEventData` event data. This uses React's event system so it works outside of the browser. **This is possibly the single most useful utility in `ReactTestUtils`.** | ||
|
||
**NOTE:** this helper is used to simulate browser events, so synthetic React events like `change` are not available. If you want to test `change`, simulate the underlying `input` browser event. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use our "standard" format for notes and get that red box.
Note:
...
(I would personally prefer we merge #939 before adding this…) |
So... do it for 0.9 or no? |
Yes Sent from my iPhone On Feb 18, 2014, at 10:23 PM, "Paul O’Shannessy" <[email protected]mailto:[email protected]> wrote: So... do it for 0.9 or no? — |
Anyone would be kind enough to provide a build of |
Yes!! Thanks 🤘 |
Docs page is a bit ugly but we should revisit how we do our reference pages sometime anyway.