概要
The Condition-Based Waiting skill provides a structured approach to handling asynchronous operations in software testing. Instead of relying on arbitrary delays like setTimeout or sleep, which often cause tests to fail in inconsistent environments like CI pipelines, this skill guides developers to implement robust polling patterns. It includes standardized TypeScript implementation patterns, integration strategies for React Testing Library, and specific guidance on avoiding common anti-patterns like stale data or CPU-intensive polling intervals.