testing

Add Vitest unit tests and optional Playwright E2E tests to Next.js projects.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/kellyclaudeai/cora --skill testing-kellyclaudeai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing
Source: https://github.com/kellyclaudeai/cora/tree/main/skills/testing
Command: npx skills add https://github.com/kellyclaudeai/cora --skill testing-kellyclaudeai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill ensures your project has a foundational testing setup, making it easier to catch regressions and maintain code quality from the start.

Core Features & Use Cases

  • Unit Testing: Integrates Vitest for fast, isolated testing of your code logic.
  • E2E Smoke Testing: Optionally adds Playwright for basic end-to-end verification of critical user flows.
  • CI Integration: Configures tests to be picked up automatically by your Continuous Integration pipeline.

Quick Start

Run the command pnpm test to execute your unit 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 unit testing in a Next.js project?

Vitest unit testing in a Next.js project is established by adding a minimal, fast testing baseline for isolated pure logic verification. The setup ensures tests are automatically picked up by your CI pipeline for continuous regression catching.

Can I add Playwright E2E tests alongside Vitest for Next.js?

Playwright E2E tests can optionally be added alongside Vitest to provide basic end-to-end verification of critical user flows. This combination covers both isolated logic unit tests and smoke tests for essential application paths.

How do I run unit tests after integrating Vitest?

To run unit tests after integrating Vitest, execute the command `pnpm test` in your terminal. This triggers the fast, isolated testing baseline configured for your Next.js project to verify pure code logic.

Does this testing setup automatically integrate with CI pipelines?

Yes, the testing setup automatically integrates with CI pipelines to ensure automated test execution. It configures Vitest and optional Playwright tests to be picked up by your Continuous Integration system for consistent code quality checks.

What is the difference between unit tests and E2E smoke tests in this setup?

Unit tests via Vitest focus on fast, isolated testing of pure code logic, while E2E smoke tests via Playwright verify critical user flows end-to-end. Both adhere to constraints of speed and determinism within the minimal testing baseline.