epic-testing

Automate Epic Stack testing with Vitest and Playwright.

5.5k|464|Updated May 4, 2023
One-click install
npx skills add https://github.com/epicweb-dev/epic-stack --skill epic-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: epic-testing
Source: https://github.com/epicweb-dev/epic-stack/tree/main/docs/skills/epic-testing
Command: npx skills add https://github.com/epicweb-dev/epic-stack --skill epic-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps ensure Epic Stack applications behave as expected by providing a structured approach to unit and end-to-end testing, reducing regressions and speeding up development.

Core Features & Use Cases

  • Unit tests with Vitest to validate individual components and utilities.
  • E2E tests with Playwright to verify real user flows across routes and pages.
  • Fixtures, mocks, and test utilities to simulate authentication, data layer interactions, and network responses.

Quick Start

Install Vitest and Playwright in your project, add test files under tests/, and run the test suite with your package manager.

Frequently Asked Questions about epic-testing

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

FAQPage Schema
How do I set up unit and E2E tests for an Epic Stack app?

To set up testing for an Epic Stack app, install Vitest and Playwright, add TypeScript or JavaScript test files under a tests directory, and run the suite with your package manager to validate components, utilities, and user flows.

What is the best way to automate end-to-end user flow testing in Epic Stack?

Automating end-to-end testing in Epic Stack is best handled with Playwright, which verifies real user flows across routes and pages by simulating interactions and network responses to ensure application behavior matches expectations.

Do I need specific fixtures to simulate authentication during Vitest testing?

Yes, you need authentication fixtures and database helpers to simulate login scenarios during Vitest testing. These test utilities provide the necessary mocked data layer interactions and authenticated states required to produce reliable results.

Can I run both integration and unit tests using Vitest in an Epic Stack project?

Yes, Vitest supports both unit and integration tests in an Epic Stack project. It validates individual components and utilities while using mocks and fixtures to handle data layer interactions and network responses across the application.

Why does my Epic Stack testing workflow need both Vitest and Playwright?

Your Epic Stack testing workflow needs Vitest for isolated unit and integration tests of utilities and components, alongside Playwright for end-to-end tests that verify real browser interactions across routes and authentication scenarios.

What limitations exist when testing Epic Stack apps with Vitest and Playwright?

Testing Epic Stack apps with Vitest and Playwright requires existing setup for both frameworks, TypeScript or JavaScript test files, and properly configured fixtures for login and database helpers to run tests and produce reliable results.

Related Skills