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

Support global timeout #72

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

IdanGoor
Copy link

Added support for a global timeout configuration, follows the specification of asyncUtilTimeout.
In order to achieve this goal, we had to manipulate the "dom-testing-library.js" file (similar to how it's being done today to support testIdAttribute configuration), and replace all occurrences of asyncUtilTimeout with our config. We used a regex to match floating-point numbers with an optional exponent, because esbuild formats "1000" to "1e3".

Moreover, we add & change tests so we can verify the global timeout works with this library waitFor method, and also with the findBy* query from the "dom-testing-library".

Relates to ticket #71

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

Successfully merging this pull request may close these issues.

1 participant