Writing about Testing Library
- Published on
Recreate Testing Library waitFor function with XState
Testing Library brings a formidable waitFor function to your tests to wait for a condition to be met before a timeout is reached. But sometimes we need such a function outside of client-side tests.