Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
spences10 avatar

Component Testing Patterns

  • 4 installs
  • 6 repo stars
  • Updated August 3, 2026
  • spences10/devhub-crm

Helps with testing & qa tasks.

About

component-testing-patterns is a Claude Code skill for testing & qa. It helps solo builders move faster with AI-assisted development.

  • component-testing-patterns
  • Testing & QA
  • AI-coding skill

Component Testing Patterns by the numbers

  • 4 all-time installs (skills.sh)
  • Ranked #1,631 of 2,153 Testing & QA skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/spences10/devhub-crm --skill component-testing-patterns

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs4
repo stars6
Last updatedAugust 3, 2026
Repositoryspences10/devhub-crm

What it does

Helps with testing & qa tasks.

Files

SKILL.mdMarkdownGitHub ↗

Component Testing Patterns

Quick Start

import { page } from 'vitest/browser';
import { render } from 'vitest-browser-svelte';

render(Button, { label: 'Click' });
await page.getByRole('button', { name: 'Click' }).click();
await expect.element(page.getByRole('button')).toBeInTheDocument();

Core Principles

  • Locators, never containers: page.getByRole() auto-retries
  • Semantic queries: getByRole(), getByLabelText() for

accessibility

  • Await assertions: await expect.element(el).toBeInTheDocument()
  • Real browsers: Tests run in Playwright, not jsdom

Common Patterns

  • Locators: page.getByRole('button'), .first(), .nth(0),

.last()

  • Interactions: await input.fill('text'), await button.click()
  • Runes: Use .test.svelte.ts files, flushSync(), untrack()
  • Files: *.svelte.test.ts (browser), *.ssr.test.ts (SSR),

*.test.ts (server)

References

  • setup-configuration.md -

Complete Vitest browser setup

  • testing-patterns.md -

Comprehensive testing patterns

  • locator-strategies.md - Semantic

locator guide

  • troubleshooting.md - Common issues

and fixes

<!-- PROGRESSIVE DISCLOSURE GUIDELINES:

  • Keep this file ~50 lines total (max ~150 lines)
  • Use 1-2 code blocks only (recommend 1)
  • Keep description <200 chars for Level 1 efficiency
  • Move detailed docs to references/ for Level 3 loading
  • This is Level 2 - quick reference ONLY, not a manual

-->

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.