component-fixtures

Coordinate component fixtures for isolated UI components in the VS Code workbench component explorer.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/colajacquin-e/ephcode --skill component-fixtures-colajacquin-e
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: component-fixtures
Source: https://github.com/colajacquin-e/ephcode/tree/main/.github/skills/component-fixtures
Command: npx skills add https://github.com/colajacquin-e/ephcode --skill component-fixtures-colajacquin-e

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Managing and validating UI component fixtures for visual regression tests typically requires manual setup and ad-hoc tooling. This skill provides a centralized approach to fixture creation and maintenance to improve consistency across components.

Core Features & Use Cases

  • Fixture scaffolding for isolated components in the VS Code workbench component explorer.
  • Theming and CSS scoping utilities to ensure fixtures render correctly under Dark/Light themes.
  • Guidance and utilities for fixture file structure, service setup, and asynchronous rendering.
  • Use Case: A team wants repeatable visuals for a new widget across multiple themes and screen sizes.

Quick Start

Create a fixture file under src/vs/workbench/test/browser/componentFixtures/ and run the Launch Component Explorer task to render and capture screenshots.

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 isolated visual testing?

UI component fixtures are isolated component setups used to support deterministic visual testing. You create a fixture file under the component explorer test directory and run the Launch Component Explorer task to render and capture screenshots.

How do you ensure UI component fixtures render correctly across Dark and Light themes?

To ensure component fixtures render correctly across themes, apply theming and CSS scoping utilities during fixture creation. This isolates component styles and verifies visual output under both Dark and Light VS Code workbench themes.

What is the file structure for setting up component fixtures in the VS Code workbench?

The component fixture file structure involves creating test files under src/vs/workbench/test/browser/componentFixtures/. This structure supports service setup, asynchronous rendering, and CSS scoping for reliable visual regression tests.

Can I use component fixtures for asynchronous rendering in visual regression tests?

Yes, component fixtures support asynchronous rendering within the VS Code workbench component explorer. The setup includes guidance for handling async rendering to ensure deterministic visual testing across varied themes and screen sizes.

Why do my visual regression tests fail when UI components are tested without isolated fixtures?

Visual regression tests fail without isolated fixtures due to inconsistent theming, CSS leakage, and ad-hoc tooling. A centralized fixture approach provides consistent file structures and CSS scoping to produce deterministic and repeatable visuals.