testing-frontend
Installation
SKILL.md
Frontend Testing Patterns
Overview
Testing patterns for frontend applications using Vitest and React Testing Library / Vue Test Utils.
Testing Philosophy
User-Centric Testing
Test behavior, not implementation. Query elements the way users would find them.
// BAD: Testing implementation
expect(wrapper.state('isOpen')).toBe(true);
expect(wrapper.find('.modal-class').exists()).toBe(true);