What problem does it solve?
This Skill prevents low-value tests from polluting the Ant Design codebase by identifying cases that merely re-prove the implementation, lock onto internal details, or duplicate existing coverage.
Core Features & Use Cases
- Contract Independence Check: Evaluates whether a test's expected value comes from an independent source (issue, docs, DOM semantics) or is reverse-engineered from the production code.
- Implementation Detail Detection: Flags assertions on private helpers, internal state, specific CSS properties, and temporary class names as low-value by default.
- Redundancy Analysis: Compares new test cases against existing
mountTest, rtlTest, and behavior-focused tests to identify duplicate coverage.
- Use Case: A contributor opens a PR adding a new test for a Tooltip component. Use this Skill to determine whether the test protects a real user-facing behavior or just re-asserts the implementation logic.
Quick Start
Review the test cases in this PR diff and tell me which ones should be deleted, rewritten, or kept.