This skill provides a specialized framework for testing how your application handles varying API responses without relying on brittle implementation checks. By using conditional overrides, you can verify that components correctly render data when filtering, sorting, or paginating. It enables developers to define custom responses for specific request predicates including query params, path segments, request bodies, or headers, ensuring that tests reflect real-world user experiences while maintaining clean, maintainable mock data across test suites.
主要功能
0181 GitHub stars
02Predicate-based logic for granular control over API mock behavior
03Conditional response overrides based on query params, path, and request body
04Support for error state simulations and network failure testing
05Chaining multiple overrides to handle complex test scenarios
06Reusable scenarios to standardize mock behavior across multiple test files
使用场景
01Testing UI components with filtered, sorted, or paginated data sets
02Verifying empty state handling when APIs return no results for specific queries
03Simulating server-side errors or network failures to test frontend resilience