test-changed

Installation
SKILL.md

Run Tests for Changed Files

Run e2e and unit tests that are relevant to the files changed on the current branch.

Test Configuration

  • Unit (Jest): Config in jest.config.js, path aliases via moduleNameMapper
  • E2E (Playwright): Config in playwright.config.ts, Chromium only, 20s timeout per test, 2 retries, 2 workers
  • E2E dev server: Playwright starts pnpm dev automatically, but reuseExistingServer: true in non-CI — a stale server from another branch will cause false failures

Steps

  1. Kill any stale dev server on port 3000 before running e2e tests. Playwright's reuseExistingServer will pick up a server from a different branch otherwise, causing false failures (especially in worktrees):
    lsof -ti:3000 | xargs kill -9 2>/dev/null; true
    
Installs
1
GitHub Stars
109
First Seen
Jun 22, 2026
test-changed — stellar/laboratory