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 viamoduleNameMapper - E2E (Playwright): Config in
playwright.config.ts, Chromium only, 20s timeout per test, 2 retries, 2 workers - E2E dev server: Playwright starts
pnpm devautomatically, butreuseExistingServer: truein non-CI — a stale server from another branch will cause false failures
Steps
- Kill any stale dev server on port 3000 before running e2e tests. Playwright's
reuseExistingServerwill 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