About
This skill provides specialized guidance for debugging and fixing inconsistent test behavior caused by race conditions and timing dependencies. It introduces the core principle of waiting for actual conditions—such as events, state changes, or file existence—rather than relying on brittle timing guesses like setTimeout or sleep. By implementing standardized polling patterns with built-in timeout protections, developers can ensure their test suites pass consistently across different environments, reduce execution time by avoiding unnecessary delays, and improve the reliability of CI/CD pipelines.