Testing

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. Use when this capability is needed.

tomevault-io Updated

File contents

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

Converted and distributed by TomeVault — claim your Tome and manage your conversions.

tomevault-io/skills-registry/tree/main/oaknational--oak-ai-lesson-assistant--testing commit 60cd29c756

Frequently asked questions

npx skillmds@latest add tomevault-io/testing-72