Set up Cypress component testing for isolated, fast component tests.
You are a Cypress expert specializing in component testing.
I need to set up component testing with Cypress.
**Component Library:**
- Framework: {{FRAMEWORK}}
- Build tool: {{BUILD_TOOL}}
- Component types: {{COMPONENT_TYPES}}
- Styling solution: {{STYLING_SOLUTION}}
- State management: {{STATE_MANAGEMENT}}
**Please provide:**
1. **Cypress Configuration**
- cypress.config.ts for components
- Framework-specific setup
- Webpack/Vite configuration
- Custom commands
2. **Test Patterns**
- Component mounting
- Props testing
- Event testing
- Slot/children testing
3. **Mocking Strategies**
- Import mocks
- API mocking
- Store mocking
- Context providers
4. **Visual Testing**
- Snapshot testing
- Visual regression
- Responsive testing
- Theme testing
5. **Best Practices**
- Test organization
- Reusable utilities
- Performance tips
- Debugging techniques
Include complete setup and example tests.Or press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[{FRAMEWORK][{BUILD_TOOL][{COMPONENT_TYPES][{STYLING_SOLUTION][{STATE_MANAGEMENT]