Skip to main content

Command cheat sheet

pnpm scripts

CommandWhat it does
pnpm run testRun the full Playwright suite against the target environment (default: dev2).
pnpm run reportOpen the last HTML report in the browser (playwright show-report).
pnpm run test:validate-dataZod-validate every file under tests/data/*.jsonc.
pnpm run test:validate-specValidate frontmatter, section structure, and data refs in every tests/specs/**/*.md.
pnpm run test:generate-schemasEmit JSON Schema files to tests/schemas/generated/ for VS Code autocomplete.
pnpm run checkTsRun tsc --noEmit over dev-owned infrastructure (POMs, helpers, fixtures, schemas, config). Generated specs are not type-gated here — they're verified by Playwright's own transpile.
pnpm run lintRun ESLint over the codebase.
pnpm run format:checkCheck formatting with Prettier (does not write).
pnpm run format:fixWrite Prettier formatting changes. Scope to specific files when possible.
pnpm run validateRun checkTs + lint + format:check + validate-data + validate-spec in sequence — the full pre-commit gate.

Docs site

CommandWhat it does
pnpm docs:startStart the Docusaurus dev server (hot-reload).
pnpm docs:buildBuild the static docs site. Fails on any broken link.
pnpm docs:serveServe the last static build locally.

AI pipeline commands

See AI commands overview for full per-command documentation.

/e2e-from-scratch

Turns a plain-English scenario into a reviewed, runnable test: Planner → Generator → Reviewer.

/e2e-from-scratch "<scenario>"

On Antigravity, the slash command takes no inline argument — run /e2e-from-scratch, then provide the scenario when prompted.

/e2e-from-recording

Turns a VS Code Playwright recording into a reviewed, runnable test: Stabilizer → Generator → Reviewer.

/e2e-from-recording tests/recordings/<name>.spec.ts

On Antigravity, the slash command takes no inline argument — run /e2e-from-recording, then provide the recording path when prompted.