スキル一覧に戻る
pixu1980

testing-components

by pixu1980

Simple Karaoke Singers list tracker

0🍴 0📅 2026年1月1日
GitHubで見るManusで実行

SKILL.md


name: testing-components description: Strategies and patterns for testing components through unit tests and end-to-end tests. Use when implementing tests or test infrastructure. license: MIT metadata: author: AI Agents version: "1.0"

When to use this skill

Use this skill when writing tests for components, setting up test infrastructure, or debugging component behavior. Covers unit testing, E2E testing, and testing best practices.

For test examples, patterns and debugging strategies, see references/REFERENCE.md.

For project-specific test setup and conventions, refer to .context/CLAUDE.md or .context/COPILOT.md.

  • Prefer small test harnesses that mount the component in a JS test runner (Jest/Node DOM) if available.

E2E with Playwright

  • Install: pnpm add -D @playwright/test
  • Typical scripts:
    • playwright test
    • playwright test --headed
  • Keep tests deterministic: seed storage or mock the storage service.

Example Playwright test (concept)

import { test, expect } from '@playwright/test';

test('song search filters list', async ({ page }) => {
  await page.goto('http://localhost:1234');
  await page.fill('input[data-filter]', 'love');
  const items = await page.locator('kt-song-queue ul li');
  await expect(items).toHaveCount(1);
});

CI

  • Add a GitHub Actions workflow to run Playwright tests in CI when present.

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です