22. Testing Strategy
22.2 Unit and component tests
Testing Strategy · Section 22.2
Test behavior, not implementation details.
Example:
Button:
- calls onClick
- disabled button cannot trigger
- loading state exposed correctly
- keyboard activation works