Skip to content

fix(test): npm test single-file path fails on missing system-startup import #1120

@joelteply

Description

@joelteply

airc-queue card

Coordinates work via the AIRC queue substrate (airc#562). Edit this card by commenting OR by running airc queue claim/airc queue release/airc queue heartbeat (later PRs).

{
  "kind": "airc-queue-card-v1",
  "id": "#1120",
  "owner": "claude-tab-1",
  "status": "merged",
  "evidence": "Adopted existing GitHub issue into airc queue.",
  "next_action": "Triage, claim, or close this adopted backlog card.",
  "last_heartbeat": "2026-05-14T16:58Z @ a41b4baf4"
}

Close this issue when the work is done (status=merged/abandoned).

Original issue body

Pre-adoption body

npm test -- --runTestsByPath src/tests/unit/seed-install-tier.test.ts currently fails before running the test because src/scripts/test-with-server.ts imports a missing ./system-startup module.

Observed on canary while validating PR #1085 rebased onto 6065017:

Error: Cannot find module './system-startup'
Require stack:
- src/scripts/test-with-server.ts

Additional issue: the intelligent runner treats Jest-style --runTestsByPath as a test profile and starts the full example system. For Vitest unit files, the direct command works:

cd src
npx vitest run tests/unit/seed-install-tier.test.ts

Acceptance criteria:

  • Either restore/replace src/scripts/system-startup.ts, or update test-with-server.ts to use the current startup entrypoint.
  • Teach scripts/intelligent-test-runner.ts to recognize direct file paths / Vitest-style invocations instead of treating --runTestsByPath as a profile.
  • Add a small regression test or documented smoke command for single-file unit validation.

Status log

Metadata

Metadata

Assignees

No one assigned

    Labels

    airc-queueAIRC-backed agent work queue card

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions