testing

Automates setup, maintenance, and execution of Vitest, React Testing Library, and Playwright tests for CLB Tri Thức projects.

Updated Mar 15, 2026
One-click install
npx skills add https://github.com/lilbom32/ketnoitrithuc --skill testing-lilbom32
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing
Source: https://github.com/lilbom32/ketnoitrithuc/tree/main/.claude/skills/testing
Command: npx skills add https://github.com/lilbom32/ketnoitrithuc --skill testing-lilbom32

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a structured approach to adding and maintaining unit tests and E2E tests for the CLB Tri Thức project, ensuring test quality, reliability, and fast feedback loops across code changes.

Core Features & Use Cases

  • Unit tests with Vitest and React Testing Library to validate components, hooks, and utilities.
  • End-to-end tests with Playwright to cover critical user flows and integration points.
  • Clear setup guidance for Vitest config, setup files, and project-wide test scripts to enable quick starts and consistent testing practices.

Quick Start

Install the required testing dependencies and initialize the Vitest/RTL and Playwright configuration to start writing tests.

Frequently Asked Questions about testing

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

FAQPage Schema
How do I set up Vitest and React Testing Library for unit testing in a Next.js project?

Set up Vitest and React Testing Library by initializing the provided vitest.config.ts and setup.ts files. This creates a ready-to-use unit testing environment to validate React components, hooks, and utilities with consistent configurations.

What is the best way to automate end-to-end testing for React applications?

Automate end-to-end testing for React applications using Playwright configurations and templates. This approach covers critical user flows and integration points, ensuring reliable E2E test workflows across your modern React or Next.js project.

Can I use Playwright alongside Vitest in the same testing environment?

Yes, you can use Playwright alongside Vitest in the same testing environment. The setup provides specific configurations and npm scripts that integrate both frameworks to manage unit, integration, and E2E test workflows simultaneously.

Why do I need a setup file for React Testing Library?

You need a setup file for React Testing Library to initialize the required DOM environment and jest-dom matchers before executing tests. This setup.ts file ensures consistent component rendering and validation behavior across all unit tests.

Does this testing setup work for existing Next.js projects?

Yes, this testing setup works for existing Next.js projects. It applies to modern React and Next.js codebases by providing project-wide test scripts and configuration files that establish a consistent testing environment without disrupting current architecture.

What are the limitations of using Vitest for end-to-end testing?

Vitest is designed for unit and integration tests, not end-to-end testing. For E2E testing, you need Playwright. The setup separates these concerns by using Vitest for component validation and Playwright for critical user flow testing.