testing-next-stack

Scaffold Vitest, RTL, Playwright, and axe-core testing for Next.js projects.

6|Updated Nov 11, 2025
One-click install
npx skills add https://github.com/hopeoverture/worldbuilding-app-skills --skill testing-next-stack
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-next-stack
Source: https://github.com/hopeoverture/worldbuilding-app-skills/tree/main/skills/testing/testing-next-stack
Command: npx skills add https://github.com/hopeoverture/worldbuilding-app-skills --skill testing-next-stack

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires vitest, @vitejs/plugin-react, @testing-library/react, @testing-library/jest-dom, @testing-library/user-event, jsdom, @playwright/test, @axe-core/playwright, happy-dom, @types/node, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill scaffolds a complete testing infrastructure for Next.js applications, including Vitest unit tests, React Testing Library component tests, and Playwright E2E tests with axe-core accessibility testing. It helps teams set up fast, reliable tests and standard patterns for worldbuilding features.

Core Features & Use Cases

  • Vitest configuration for fast unit tests
  • RTL setup for component testing
  • Playwright configuration for E2E testing
  • Accessibility testing with axe-core
  • Test utilities and helpers
  • Example tests demonstrating best practices

Quick Start

Use the testing-next-stack skill to generate a full testing scaffold in a Next.js project. Then install dependencies and begin writing test files following the included templates.

Frequently Asked Questions about testing-next-stack

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

FAQPage Schema
How do I set up testing for a Next.js project with Vitest, RTL, and Playwright?

Set up testing for Next.js by scaffolding a complete infrastructure with Vitest for unit tests, React Testing Library for component tests, and Playwright for end-to-end testing. This Skill generates configuration files, installs dependencies, creates test utilities, and provides example tests ready to run immediately.

Can I use Vitest instead of Jest in my Next.js project?

Yes, Vitest replaces Jest in Next.js projects for faster unit testing. This Skill handles the migration by configuring Vitest, setting up React Testing Library with Vitest, and generating test templates that follow Jest-compatible patterns, making the transition seamless.

How do I add accessibility testing to my Next.js component tests?

Add accessibility testing by integrating axe-core with Playwright during end-to-end testing. This Skill configures axe-core as a Playwright plugin, provides test examples that scan for accessibility violations, and delivers patterns for catching issues before production.

What's included in the testing scaffold for Next.js projects?

The scaffold includes Vitest configuration for unit tests, React Testing Library setup for component tests, Playwright configuration for E2E tests, axe-core accessibility checks, test utility helpers, example tests demonstrating best practices, and updated package scripts to run all test types.

Do I need to manually configure each testing tool separately?

No, this Skill automates the entire setup process. It generates all configuration files, installs dependencies, creates test utilities and helpers, and provides example tests, so you can start writing tests immediately without manual configuration of Vitest, RTL, Playwright, or axe-core.