Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: typo in no-side-effects-wait-for doc
Co-authored-by: Gonzalo D'Elia <gonzalo.n.delia@gmail.com>
  • Loading branch information
renatoagds and gndelia authored Jul 22, 2020
commit cee6abd9b44bfb86ea90ccdd9093b79e2d23a0d4
2 changes: 1 addition & 1 deletion docs/rules/no-side-effects-wait-for.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Rule Details

This rule aims to avoid the usage of side effects actions (`fireEvent` or `useEvent`) inside `waitFor`.
This rule aims to avoid the usage of side effects actions (`fireEvent` or `userEvent`) inside `waitFor`.
Since `waitFor` is intended for things that have a non-deterministic amount of time between the action you performed and the assertion passing,
the callback can be called (or checked for errors) a non-deterministic number of times and frequency.
This will make your side-effect run multiple times.
Expand Down