Testing

Runs automated unit and Playwright end-to-end tests for your project.

Updated Dec 23, 2025
One-click install
npx skills add https://github.com/tachfineamnay/LumiraV2 --skill testing-tachfineamnay
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Testing
Source: https://github.com/tachfineamnay/LumiraV2/tree/main/skills/08-testing
Command: npx skills add https://github.com/tachfineamnay/LumiraV2 --skill testing-tachfineamnay

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams ensure code reliability by automating tests across unit and end-to-end layers, reducing regressions and manual testing effort.

Core Features & Use Cases

  • Unit tests: Run Jest tests across API and frontend modules, e.g., apps//src/**/.spec.ts.
  • E2E tests: Playwright-based end-to-end tests with fixtures and UI workflows (tests/e2e/).
  • CI integration: Seamless test execution in CI pipelines to guard PRs and releases.
  • Fixtures: Reusable test data for realistic scenarios using tests/fixtures/.

Quick Start

Run the full test suite locally with pnpm test. For unit tests only, run pnpm --filter api test. For E2E tests, use Playwright: npx playwright test. Ensure dependencies are installed via pnpm install and browsers via npx playwright install --with-deps when running E2E locally.

Frequently Asked Questions about Testing

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

FAQPage Schema
How do I run Jest unit tests and Playwright E2E tests in one command?

Yes, you can execute the full test suite of unit and E2E tests locally using the pnpm test command, which runs both Jest and Playwright tests together.

Does this testing workflow require installing specific browser binaries for Playwright?

Yes, running Playwright E2E tests locally requires installing browser binaries and their system dependencies first using the npx playwright install --with-deps command.

What is the best way to isolate API unit tests from frontend tests during local development?

To isolate API unit tests, use the pnpm --filter api test command, targeting only the Jest spec files within the API module instead of the entire suite.

Can I use fixture data for both unit tests and Playwright E2E tests?

Yes, reusable fixture data stored under tests/fixtures can be used to create realistic test scenarios across both Jest unit tests and Playwright E2E tests.

Why do I need a CI configuration for automated testing?

A CI configuration is required to automatically run Jest unit tests and Playwright E2E tests on every push or PR, preventing regressions from merging into your codebase.