dial-testing

Guide unit and end-to-end testing for ai-dial-chat with Vitest, React Testing Library, and Playwright.

503|60|Updated Sep 7, 2023
One-click install
npx skills add https://github.com/epam/ai-dial-chat --skill dial-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dial-testing
Source: https://github.com/epam/ai-dial-chat/tree/main/.claude/skills/dial-testing
Command: npx skills add https://github.com/epam/ai-dial-chat --skill dial-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides structured testing guidance for ai-dial-chat projects, enabling consistent unit and end-to-end testing practices that improve reliability and maintainability.

Core Features & Use Cases

  • Unit tests with Vitest and React Testing Library, following Arrange/Act/Assert conventions.
  • E2E tests with Playwright using fixtures and page objects, plus test location guidance in the monorepo.
  • Clear guidelines for mocks, fixtures, and test organization to accelerate development and reduce flaky tests.

Quick Start

Run npm run test to execute the Vitest unit tests and Playwright e2e tests for ai-dial-chat.

Frequently Asked Questions about dial-testing

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

FAQPage Schema
How do I run unit and e2e tests for an ai-dial-chat monorepo?

Run npm run test to execute Vitest unit tests and Playwright e2e tests for the ai-dial-chat monorepo, which provides structured testing guidance for both frameworks.

What is the best way to organize Playwright e2e tests using fixtures and page objects?

Playwright e2e tests should use fixtures and page objects within the monorepo, following clear test location guidance to improve reliability and reduce flaky tests.

Does this testing guidance support React Testing Library with Vitest for unit tests?

Yes, unit testing applies Vitest alongside React Testing Library, following Arrange/Act/Assert conventions to ensure consistent and maintainable test coverage.

How do I set up hoisted mocks in Vitest for my chat application?

The testing guidance specifies clear guidelines for hoisted mocks and fixtures within Vitest, ensuring proper test isolation and accelerating development.

Can I use this testing structure for both unit and end-to-end testing in the same project?

Yes, it provides comprehensive testing guidance covering both unit tests with Vitest and e2e tests with Playwright, specifying naming conventions and test placement for both.

What testing conventions does this Skill recommend for organizing tests?

It specifies test placement, naming conventions, and hoisted mock guidelines across the monorepo to enable consistent unit and end-to-end testing practices.