Run all tests, TypeScript type check, lint, and format check. Use before commits and PRs.
Run comprehensive quality checks before committing. Mandatory before any PR.
npm test && npx tsc --noEmit && npm run lint && npm run format:check
# Run a specific spec file
npx playwright test src/tests/books.api.spec.ts
# TypeScript check only
npx tsc --noEmit
# Lint only
npm run lint
# Auto-fix lint and format
npm run lint:fix && npm run format
# Show HTML report after test run
npx playwright show-report
# Run in debug mode
npx playwright test --debug
18 passed (3.6s)
✗ src/tests/books.api.spec.ts:36 › Books API › GET /api/book/:id › should return a single book by id
Error: expect(received).toBe(expected)
Expected: 200
Received: 404
Fix: Check the endpoint URL and API behavior. See /debug-test for a full diagnosis checklist.
src/tests/books.api.spec.ts:12:5 - error TS2345:
Argument of type 'unknown' is not assignable to parameter of type 'string'.
Fix: Add proper type annotation or update the type definition.
BASE_URL in .envplaywright.config.ts:
use: {
actionTimeout: 30000,
}
Run npx tsc --noEmit to see all errors, then fix field types.
--no-verify or comment out failing tests to force a passSearch for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer