You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just wasted couple of hours trying to make some enzyme mount test pass. The issue seems to be the fact that we debounce validation. And since while testing you can alternate a lot of values on a field, not all of them are processed right away.
What that mean is that you need to add a delay to make the test pass. The default validationDebounceWait is 250 milliseconds. So the wait time is high. If I change the value to 0 I still cannot assert on the outcome of my validation right away. Which mean I need to add a non zero delay.
The text was updated successfully, but these errors were encountered:
Just wasted couple of hours trying to make some enzyme mount test pass. The issue seems to be the fact that we debounce validation. And since while testing you can alternate a lot of values on a field, not all of them are processed right away.
What that mean is that you need to add a delay to make the test pass. The default
validationDebounceWait
is 250 milliseconds. So the wait time is high. If I change the value to0
I still cannot assert on the outcome of my validation right away. Which mean I need to add a non zero delay.The text was updated successfully, but these errors were encountered: