Skip to content

Commit ad4627a

Browse files
GpxKent C. Dodds
authored and
Kent C. Dodds
committed
docs: add advice to use fireEvent over Simulate (#85)
1 parent a77a8f5 commit ad4627a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,8 @@ Note: `Simulate` does not simulate _browser_ events, meaning if you have an elem
326326

327327
calling `Simulate.click` will not cause the submit event to be invoked. In order to get around this and for more info, see [`fireEvent`](#fireeventnode-htmlelement-event-event).
328328

329+
In general, it is better to use `fireEvent` whenever possible because it mimics more closely what happens in the browser when an event happens.
330+
329331
### `wait`
330332

331333
Defined as:

0 commit comments

Comments
 (0)