epic-testing

Guide Epic Stack testing with Vitest unit tests and Playwright end-to-end tests.

Updated May 18, 2026
One-click install
npx skills add https://github.com/mbdeaton/phys-notes --skill epic-testing-mbdeaton
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: epic-testing
Source: https://github.com/mbdeaton/phys-notes/tree/main/docs/skills/epic-testing
Command: npx skills add https://github.com/mbdeaton/phys-notes --skill epic-testing-mbdeaton

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance on effectively testing applications built with the Epic Stack, ensuring robust and reliable software through best practices in unit and end-to-end testing.

Core Features & Use Cases

  • Vitest for Unit Tests: Learn to write efficient unit tests for utilities and components.
  • Playwright for E2E Tests: Master end-to-end testing for user workflows, forms, routes, and authentication.
  • Mocking & Data Management: Understand how to mock external services with MSW and manage test databases.
  • Use Case: You need to write tests for a new feature in your Epic Stack application, covering both individual component logic and the complete user journey from signup to data submission.

Quick Start

Refer to this skill's documentation for detailed examples on setting up Vitest unit tests and Playwright end-to-end tests within your Epic Stack project.

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 testing and e2e testing in an Epic Stack application?

To set up Epic Stack testing, use Vitest for unit testing component logic and Playwright for end-to-end testing user workflows, forms, and routes. This combination ensures robust coverage for individual utilities and complete user journeys.

How do I test authenticated routes and user workflows with Playwright in the Epic Stack?

Testing authenticated routes in the Epic Stack involves using Playwright fixtures for authentication and navigation. You set up test database interactions and permission checks to simulate complete user journeys from signup to data submission securely.

What is the best way to mock external services and APIs during Epic Stack testing?

The best way to mock external services during Epic Stack testing is by using Mock Service Worker (MSW). MSW allows you to intercept network requests and simulate API responses, ensuring your unit and e2e tests remain isolated and reliable.

How do I test Remix loaders and actions in my Epic Stack project?

Testing Remix loaders and actions in an Epic Stack project requires writing Vitest unit tests that validate form submissions and data fetching logic. You manage test databases and mock API interactions to verify loader and action behavior accurately.

Does Epic Stack testing support validating form submissions and permission checks?

Yes, Epic Stack testing supports validating form submissions and permission checks. You can write Vitest unit tests for form validation logic and use Playwright to verify end-to-end permission enforcement across different user roles and routes.