senior-qa

Generates Jest, React Testing Library, and Playwright tests for React and Next.js applications.

2|Updated Mar 24, 2026
One-click install
npx skills add https://github.com/BryanPinheiro77/FinanceBot-BackEnd --skill senior-qa-bryanpinheiro77
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: senior-qa
Source: https://github.com/BryanPinheiro77/FinanceBot-BackEnd/tree/main/.agents/skills/senior-qa
Command: npx skills add https://github.com/BryanPinheiro77/FinanceBot-BackEnd --skill senior-qa-bryanpinheiro77

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Writing and maintaining test suites for React/Next.js applications is time-consuming, and teams struggle to identify coverage gaps in critical paths like authentication and payments. This Skill automates test stub generation, coverage gap analysis, and E2E scaffolding so quality assurance work starts from a structured baseline instead of a blank file. ## Core Features & Use Cases - Test Suite Generation: Scans React/TypeScript components and generates Jest + React Testing Library test stubs with render, interaction, and optional accessibility (jest-axe) assertions. - Coverage Analysis: Parses Istanbul JSON or LCOV coverage reports, identifies uncovered lines and branches, flags critical paths (auth, payment, checkout), and enforces thresholds with a strict mode for CI pipelines. - E2E Scaffolding: Scans Next.js App Router or Pages Router directories and generates Playwright test files per route, plus optional Page Object Model classes, playwright.config.ts, and auth fixtures. - Use Case: After building a new Next.js dashboard, run the E2E scaffolder on src/app/ to generate Playwright specs for every route, then run the coverage analyzer against your Jest report to find untested payment logic before release. ## Quick Start Ask the assistant to generate Jest test stubs for all components in src/components and then analyze the coverage report at coverage/coverage-final.json with an 80 percent threshold.

Frequently Asked Questions about senior-qa

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

FAQPage Schema
How do I generate Jest tests for React components automatically?▼

Run the test_suite_generator.py script against your components directory to produce Jest + React Testing Library stubs. It detects functional, class, memo, and forwardRef components and creates render, interaction, and optional accessibility tests.

How to scaffold Playwright E2E tests from Next.js routes?▼

Run e2e_test_scaffolder.py on your Next.js app or pages directory. It detects routes, dynamic parameters, forms, and auth pages, then generates a Playwright spec per route plus playwright.config.ts and authentication fixtures.

What coverage formats does the analyzer support?▼

The coverage analyzer parses Istanbul JSON reports such as coverage-final.json and LCOV .info files. It calculates line, branch, function, and statement coverage and can output text, HTML, or JSON reports.

Can I enforce a minimum coverage threshold in CI?▼

Yes, run coverage_analyzer.py with the --threshold and --strict flags. The script exits with a non-zero status when line coverage falls below the threshold, which fails the CI job.

Does the test generator support accessibility testing?▼

Yes, passing --include-a11y to the test suite generator adds jest-axe accessibility assertions to the generated component tests. The E2E side can use @axe-core/playwright for accessibility checks.

Why does coverage analysis flag auth and payment files as critical?▼

The analyzer matches file paths against patterns like auth, payment, checkout, and transaction, assigning them critical severity with a 95 percent target. This prioritizes testing effort on business-critical code paths.