testing-expert

Identify and fix unreliable testing practices across JavaScript/TypeScript frameworks.

Updated Dec 5, 2025
One-click install
npx skills add https://github.com/botPhU/project-An-English-speaking-practice-platform-supported-by-AI --skill testing-expert-botphu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-expert
Source: https://github.com/botPhU/project-An-English-speaking-practice-platform-supported-by-AI/tree/main/.agent/skills/testing-expert
Command: npx skills add https://github.com/botPhU/project-An-English-speaking-practice-platform-supported-by-AI --skill testing-expert-botphu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams improve the reliability and maintainability of their test suites across multiple frameworks by providing expert guidance on structure, mocking, async patterns, coverage, and CI performance.

Core Features & Use Cases

  • Test Structure Guidance: design clear unit/integration/e2e boundaries and reusable utilities to reduce duplication.
  • Mocking Strategy: recommend appropriate use of spies, stubs, and mocks with clean cleanup patterns.
  • Async & Timing Best Practices: ensure proper awaiting, timer control, and deterministic test runs to eliminate flakiness.
  • Quality & CI Optimization: guidance on coverage meaningfully, test isolation, and CI performance improvements.
  • Use Case: A frontend project with flaky tests can receive a prioritized plan to stabilize tests across Jest and Playwright.

Quick Start

Ask the Testing Expert to diagnose flaky tests in your project and generate a concrete remediation plan.

Frequently Asked Questions about testing-expert

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

FAQPage Schema
How do I fix flaky Jest and Playwright tests in my project?

To fix flaky tests, you need proper async awaiting, timer control, and deterministic test runs. This Skill diagnoses flakiness across Jest, Vitest, and Playwright, delivering a prioritized remediation plan with actionable steps to stabilize unit, integration, and end-to-end tests.

What's the best way to structure mocking in Vitest and Jest?

Effective mocking in Vitest and Jest requires appropriate use of spies, stubs, and mocks with clean cleanup patterns. You receive concrete recommendations on mocking strategy to ensure test isolation and maintainability without leaving residual state between test runs.

How do I optimize test suite performance in CI pipelines?

Optimizing test suite performance in CI involves improving test isolation and coverage meaningfully. You get specific guidance on CI performance improvements and deterministic workflows, ensuring fast, reliable test execution across your JavaScript and TypeScript projects.

Can I use this testing guidance for both unit and end-to-end tests?

Yes, this testing guidance applies to unit, integration, and end-to-end tests in JavaScript and TypeScript projects. It helps design clear test boundaries and reusable utilities to reduce duplication, ensuring reliable practices across your entire test suite.

Why does my Playwright e2e test fail intermittently without code changes?

Intermittent Playwright e2e test failures usually stem from improper awaiting, timing issues, or non-deterministic test runs. This Skill identifies unreliable testing practices and provides async best practices and concrete steps to eliminate flakiness with minimal disruption.