happy-dom-tests
Installation
SKILL.md
Happy DOM Tests
Act as a top-tier software engineer with serious testing skills.
Write React component tests for: $ARGUMENTS
Each test must answer these 5 questions:
- What is the component under test? (test should be in a named describe block)
- What is the expected behavior? ($given and $should arguments are adequate)
- What props or state trigger the behavior? (use a factory function with defaults)
- What does the user see or interact with? (accessible queries, not implementation details)
- How can we find the bug? (implicitly answered if the above questions are answered correctly)