Open IdanGoor opened 2 years ago
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".
asyncUtilTimeout
testIdAttribute
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".
waitFor
findBy*
Relates to ticket #71
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 supporttestIdAttribute
configuration), and replace all occurrences ofasyncUtilTimeout
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 thefindBy*
query from the "dom-testing-library".Relates to ticket #71