testing

oaknational's avatarfrom oaknational

Testing commands and patterns for Oak AI project including running Jest unit tests, E2E tests with Playwright, coverage reports, and filtering tests. Use when writing tests, running test suites, or debugging test failures.

⭐29stars🔀3forks📁View on GitHub🕐Updated Dec 18, 2025

When & Why to Use This Skill

This Claude skill provides a comprehensive suite of testing commands and patterns specifically designed for the Oak AI project. It streamlines the quality assurance process by enabling developers to execute Jest unit tests, React component tests, and Playwright E2E tests with ease. By offering integrated support for coverage reports and package-specific filtering, it ensures high code reliability and faster debugging cycles within a monorepo environment.

Use Cases

  • Automated Unit Testing: Rapidly execute Jest test suites to validate core logic and prevent regressions during the development phase.
  • End-to-End (E2E) Validation: Utilize Playwright to simulate complex user journeys across the application to ensure a seamless user experience.
  • Code Coverage Analysis: Generate detailed coverage reports to identify untested code paths and maintain high standards of software quality.
  • Targeted Package Debugging: Use pnpm filters to run tests on specific modules like @oakai/aila or @oakai/api, significantly reducing feedback loops in large-scale projects.
nametesting
descriptionTesting commands and patterns for Oak AI project including running Jest unit tests, E2E tests with Playwright, coverage reports, and filtering tests. Use when writing tests, running test suites, or debugging test failures.

Testing

Running Tests

All Tests

pnpm test

Specific Test Pattern

pnpm test -- -t "test name pattern"

E2E Tests

pnpm test-e2e

Coverage Report

pnpm test-coverage

Package-Specific Tests

Run tests for specific packages:

pnpm --filter @oakai/aila test
pnpm --filter @oakai/nextjs test
pnpm --filter @oakai/api test

Test Framework

  • Unit Tests: Jest
  • Component Tests: React Testing Library
  • E2E Tests: Playwright