forked from testing-library/dom-testing-library
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Stop calling
waitFor
callback after timeout (testing-library#1271
) * prevent waitFor callback racing condition * change logic * adapt the waitFor resolve test to make it more readable * surface `timeout` + waitFor `callback` calls * adding comment * adding reproductible test * robuster assertion for not calling callback again --------- Co-authored-by: Kevin Bon <[email protected]> Co-authored-by: Sebastian Silbermann <[email protected]>
- Loading branch information
1 parent
a7b7252
commit 9aaf715
Showing
2 changed files
with
109 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters