Skip to content

Add npm run verify script that runs typecheck, lint, and unit tests in sequence #275

@arasaka-net

Description

@arasaka-net

There is no single command to run all local validation steps. A composite verify script reduces the number of commands an implementer or automated agent must invoke to confirm a change is correct.

Context
The CI pipeline runs typecheck, lint, unit tests, and E2E as four independent jobs. Locally, a developer or LLM agent must run npm run typecheck, npm run lint, and npm test as three separate commands to get the same confidence. A single npm run verify script that chains these steps lets an automated agent issue one command and parse one exit code, tightening the feedback loop. E2E is intentionally excluded because it requires a running dev server and is slow, but the three fast checks should be bundled.

Affected Files

  • package.json:6 — Add a verify script entry: "verify": "npm run typecheck && npm run lint && npm test"

Requirements

  • A verify script exists in package.json that runs typecheck, lint, and test in sequence
  • The script exits with a non-zero code if any step fails, stopping further steps
  • npm run verify succeeds on the current codebase

Verification

  • npm run verify
  • grep '"verify"' package.json

Not In Scope

  • Do not include E2E tests in the verify script — they require a dev server
  • Do not modify ci.yml to use the new script — CI jobs should remain independent for parallelism
  • Do not add any new dev dependencies

Evidence

  • package.json:6-14 — Scripts section contains typecheck, lint, and test as separate entries with no composite script combining them
  • .github/workflows/ci.yml:1-52 — CI runs all four checks but as separate parallel jobs — no local equivalent exists

Arasaka Queue Planning Division.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions