Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

senior-qa

БесплатноЗапускает вложенные скриптыНе проверен

Testing for React/Next.js with Jest, React Testing Library, and Playwright. Use when generating tests, writing unit tests, analyzing coverage, scaffolding E2E…

borgheiот borghei★ 1 250 звёзд на GitHub

Об этом скилле

Senior QA Engineer

Test automation, coverage analysis, and quality assurance patterns for React and Next.js applications. Generates Jest + React Testing Library unit test stubs, analyzes Istanbul/LCOV coverage for gaps, and scaffolds Playwright E2E suites for App Router and Pages Router projects.

Core Capabilities

  • Unit test generation — scan React/TypeScript components and emit Jest + RTL stubs (render, interaction, state, optional jest-axe a11y).
  • Coverage analysis — parse Istanbul/LCOV reports, identify gaps by severity, flag critical business-logic paths, and emit text/HTML/JSON recommendations.
  • E2E scaffolding — detect Next.js routes (dynamic segments, route groups, auth pages) and generate Playwright specs, Page Object Models, fixtures, and config.
  • Test strategy — the testing pyramid, coverage targets by code type, and test organization patterns.
  • Automation patterns — Page Object Model, data factories, MSW mocking, fixtures, and custom render utilities.
  • Quality practices — testable code design, AAA structure, test isolation, flaky-test elimination, and quality metrics.

When to Use

  • Setting up unit tests for new or existing React components.
  • Improving test coverage or preparing for release.
  • Setting up Playwright E2E tests for a Next.js project.
  • Configuring Jest thresholds or improving overall test quality.

Clarify First

Before generating tests, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.

  • Test layer: unit (Jest+RTL) vs E2E (Playwright) (selects test_suite_generator vs e2e_test_scaffolder).
  • Source path: the components or Next.js routes to generate tests from (the scaffolder's input).
  • Coverage focus: happy path only vs interaction/state/a11y (jest-axe) (sets which test stubs are emitted).

Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.

Tools Overview

Tool Purpose Example (runs as written)
test_suite_generator.py Jest + RTL stubs from React components; reads the XProps interface to build typed mockProps for required props (--output, --include-a11y, --scan-only, --json) python scripts/test_suite_generator.py assets/sample_components --output /tmp/qa/tests
coverage_analyzer.py Istanbul JSON / LCOV gap analysis with critical-path weighting (--threshold, --strict, --critical-paths, --format text/html/json, --json) python scripts/coverage_analyzer.py assets/sample_lcov.info --threshold 80 --strict
e2e_test_scaffolder.py Playwright specs, page objects, fixtures and playwright.config.ts from Next.js routes, all written under --output python scripts/e2e_test_scaffolder.py assets/sample_app/app --output /tmp/qa/e2e

Exit codes: 0 ok; 1 coverage below --threshold when --strict is set (without --strict the analyzer always reports and exits 0, so use --strict in CI); 2 bad input (path not found, unparseable report). With --json the report goes to stderr and stdout is pure JSON.

Generated stubs are a starting point: they render with valid required props and leave TODO assertions, so they compile but assert nothing until you write the checks. The sample LCOV has a payment file at 37.5% line coverage, so --strict --threshold 80 exits 1.

Workflow

  1. Generate stubs or scaffold E2E specs into the project's test folder (always pass --output).
  2. Replace every TODO with an assertion on behaviour the user can see (role, text, called handler); delete stubs that test nothing useful.
  3. Run the project's tests with coverage, then coverage_analyzer.py <report> --threshold <n> --strict.
  4. Done when the suite passes, the analyzer exits 0, and no generated test is still assertion-free.

References

Load the reference that matches the task — keep this file lean and pull detail on demand:

  • references/qa-workflows-and-tools.md — quick start, the three tool overviews with sample output, the unit-test/coverage/E2E workflows, common pattern snippets (RTL queries, async, MSW, Playwright locators, jest thresholds), common commands, troubleshooting table, and success criteria. Read when running a workflow.
  • references/tool-cli-reference.md — full flag tables, examples, output formats, and generated artifacts for all three scripts. Read before running the scripts.
  • references/testing_strategies.md — the testing pyramid, testing types, coverage targets and thresholds, and test organization patterns. Read when designing test strategy.
  • references/test_automation_patterns.md — Page Object Model, data f
Полный SKILL.md на GitHub

Установить senior-qa в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.mdassets/sample_app/app/dashboard/page.tsxassets/sample_app/app/login/page.tsxassets/sample_components/Button.tsxassets/sample_lcov.inforeferences/qa-workflows-and-tools.mdreferences/qa_best_practices.mdreferences/test_automation_patterns.mdreferences/testing_strategies.mdreferences/tool-cli-reference.mdscripts/coverage_analyzer.pyscripts/e2e_test_scaffolder.pyscripts/test_suite_generator.py

FAQ

Что делает скилл senior-qa?

Testing for React/Next.js with Jest, React Testing Library, and Playwright. Use when generating tests, writing unit tests, analyzing coverage, scaffolding E2E tests, configuring Jest, or improving test quality.

Как установить скилл senior-qa?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл senior-qa запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить senior-qa с