etiennedi

etiennedi/enzyme-wait

Wait for an async element to appear when performing integration tests with enzyme.

JavaScript
40
8
MIT License

enzyme-wait is a utility for performing integration tests with Enzyme, allowing you to wait for async elements to appear before assertions. It returns a promise that resolves with the root component once the specified element is found, supporting both Promise and async/await patterns. This tool is designed for developers writing integration tests for React components that involve asynchronous operations.

Total donated
Undistributed
Share with your subscribers: