testing

Enforce standardized unit, visual, and performance test patterns in TypeScript projects.

335|45|Updated Aug 13, 2015
One-click install
npx skills add https://github.com/blueprintui/blueprintui --skill testing-blueprintui
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing
Source: https://github.com/blueprintui/blueprintui/tree/main/.claude/skills/testing
Command: npx skills add https://github.com/blueprintui/blueprintui --skill testing-blueprintui

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a comprehensive, unified framework for ensuring the quality and stability of web components through integrated unit, performance, and visual testing methodologies. It simplifies the process of maintaining high code quality and reducing bugs across your UI.

Core Features & Use Cases

  • Unified Testing Guidance: Aggregates best practices for unit, performance, and visual testing into a single, accessible resource.
  • Structured Approach: Offers clear guidelines for test file organization, execution commands, and reporting, streamlining your testing workflow.
  • Holistic Quality Assurance: Ensures components are functionally correct, performant, and visually consistent, covering all critical aspects of UI quality.
  • Use Case: When developing a new feature, activate this skill to quickly understand and apply the correct combination of testing strategies (unit, visual, performance) to ensure your component is thoroughly validated and bug-free before release.

Quick Start

Explain the overall testing strategy for web components in this project, referencing the unit, performance, and visual testing guidelines.

Frequently Asked Questions about testing

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

FAQPage Schema
How do I set up unit testing for TypeScript web components?

Unit testing for TypeScript web components involves creating test files following the *.spec.ts naming convention, writing tests that validate component logic and behavior, and executing them with your test runner. This ensures functional correctness before deployment.

What's the best way to organize visual and performance tests alongside unit tests?

Organize tests using standardized file globs: *.spec.ts for unit tests, *.visual.ts for visual regression tests, and *.performance.ts for performance benchmarks. This structure enables automated discovery, consistent execution, and clear separation of testing concerns across your UI codebase.

Why should I combine unit, visual, and performance testing for web components?

Combining all three testing types provides holistic quality assurance: unit tests verify functional correctness, visual tests ensure UI consistency, and performance tests confirm speed and stability. Together they catch functional bugs, visual regressions, and performance degradation before release.

Can I apply testing best practices to an existing TypeScript project?

Yes. The testing framework uses an alwaysApply flag and standardized patterns to integrate with existing TypeScript projects. Implement the file glob conventions and test structure incrementally to enforce consistency and enable automated tooling across your codebase.

What testing patterns should I follow for consistent quality assurance?

Follow structured test patterns that enforce consistent file organization, execution commands, and reporting. Standardized patterns reduce variability, enable cross-skill reuse, support automated tooling, and scale testing governance as your component library grows.