Replies: 2 comments
-
The downside is to increase the file size even though it's an API for testing. |
Beta Was this translation helpful? Give feedback.
-
@koba04 If you're concerned about file size, you could provide a |
Beta Was this translation helpful? Give feedback.
-
Writing tests with SWR is very painful. If you don't know the magic incantation in #781, you can easily have nondeterministic tests that can be quite difficult to debug.
I'd expect there to be a way for a test to wait for all pending requests to complete. We have rolled our own at Twitter but I'd much prefer it to be documented, stable behavior rather than
sleep(1)
:)Beta Was this translation helpful? Give feedback.
All reactions