component-fixtures

Create isolated UI component fixtures with themed variants and mock services.

5|1|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/malwarebo/nyrve --skill component-fixtures-malwarebo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: component-fixtures
Source: https://github.com/malwarebo/nyrve/tree/main/.github/skills/component-fixtures
Command: npx skills add https://github.com/malwarebo/nyrve --skill component-fixtures-malwarebo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a standardized way to create and manage fixtures for UI components, ensuring they are renderable in isolation for visual testing and development.

Core Features & Use Cases

  • Fixture Creation: Define isolated rendering environments for UI components using defineComponentFixture.
  • Themed Variants: Automatically generate dark and light mode versions of fixtures.
  • Service Mocking: Easily set up necessary editor services and mock dependencies for component testing.
  • Use Case: When developing a new button component, use this Skill to create a fixture that renders the button in various states (default, disabled, with an icon) for visual regression testing.

Quick Start

Use the component-fixtures skill to create a fixture for the 'MyButton' component.

Frequently Asked Questions about component-fixtures

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create UI component fixtures for visual regression testing?

You can create UI component fixtures by using defineComponentFixture to establish isolated rendering environments, allowing you to render and test components in various states for visual regression testing.

What are component fixtures and when do I need them for UI development?

Component fixtures are isolated rendering environments for UI components. You need them during component development to ensure renderability in isolation for visual testing and maintaining visual consistency.

Can I render themed variants like dark and light mode in component fixtures?

Yes, you can automatically generate dark and light mode themed variants of your UI components within the isolated fixture environments to test visual consistency across themes.

Does this fixture approach support service mocking for component testing?

Yes, component fixture creation supports service mocking. You can easily set up necessary editor services and mock dependencies within the isolated environments for robust component-level testing.

What is the best way to manage isolated UI component testing in a VS Code-like environment?

Using a dedicated component fixtures skill is the best way to manage isolated UI component testing in a VS Code-like environment, providing structured fixture groups and mock service setup.