Skip to content

fix: run pnpm test once - #461

Merged
oritwoen merged 1 commit into
mainfrom
fix/test-exits
Dec 2, 2026
Merged

oritwoen merged 1 commit into
mainfrom
fix/test-exits

Conversation

@aeitwoen

@aeitwoen aeitwoen commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

🔸 What this resolves

Closes #437

🔶 Why it's needed

The organization's pull request checklist deserves better than a green run that hangs until something kills it: the test script runs once and exits without a TTY.

@aeitwoen
aeitwoen requested a review from oritwoen as a code owner December 2, 2026 20:34
@aeitwoen aeitwoen self-assigned this Dec 2, 2026
@coldtea-pr-lens

Copy link
Copy Markdown

Note

Nothing here is code, only docs, data or images, so PR Lens left this pull request undrawn. Comment @pr-lens draw to draw it

github.comment.notice: false in .github/pr-lens.yml turns this note off

@coderabbitai

coderabbitai Bot commented Dec 2, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 19 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: QUIET
  • Plan: Advanced
  • Run ID: a070b467-b741-485c-bc28-ab5acd3166db
Commits

Reviewing files that changed from the base of the PR and between f7c9ca4 and 88af59e.

Files selected for processing: 2

  • README.md
  • package.json
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-02T20:34:48.682803Z 88af59e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cubic analysis

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Linked issue analysis

Linked issue: agntn/forges#437: pnpm test never exits without a terminal

Status Acceptance criteria Notes
✅ Run tests once and exit without a TTY package.json maps test to vp test run, so pnpm test no longer starts watch mode.
✅ Keep watch mode available as a separate script package.json adds test:watch mapped to vp test watch, preserving the watch-mode command.
Architecture diagram
sequenceDiagram
    participant Dev as Developer
    participant CLI as Terminal
    participant Pkg as package.json Scripts
    participant Vp as Vitest-Powered Test Runner
    participant CI as CI Pipeline

    Note over Dev,CI: Test Command Flow

    Dev->>CLI: Run pnpm test
    CLI->>Pkg: Execute "test" script
    Pkg->>Vp: "vp test run"
    Vp->>Vp: Run tests once (non-watch mode)
    Vp-->>Pkg: Test results + exit code
    Pkg-->>CLI: Process exits
    CLI-->>Dev: Command terminates

    Note over Dev,CI: Watch Mode (Optional)

    Dev->>CLI: Run pnpm test:watch
    CLI->>Pkg: Execute "test:watch" script
    Pkg->>Vp: "vp test watch"
    Vp->>Vp: Run tests in watch mode
    Vp-->>Pkg: Continuous test results
    Pkg-->>CLI: Stay active (TTY required)
    CLI-->>Dev: Interactive watch session

    Note over Dev,CI: CI Single-Run

    CI->>Pkg: Run pnpm test:run
    Pkg->>Vp: "vp test run"
    Vp->>Vp: Run tests once
    Vp-->>Pkg: Results + exit code
    Pkg-->>CI: Pass/fail signal

    Note over Dev,CI: README Documentation Flow
    Dev->>CLI: Read README test commands
    CLI-->>Dev: test / test:watch / test:run usage
Loading

Auto-approved: Changes the pnpm test script from watch mode to a single run that exits, adds test:watch, and updates the README. Bounded development-tooling fix that corrects a hanging test command.

Re-trigger cubic

@oritwoen
oritwoen merged commit 5a01a47 into main Dec 2, 2026
5 checks passed
@oritwoen
oritwoen deleted the fix/test-exits branch December 2, 2026 20:40
@github-actions github-actions Bot mentioned this pull request Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pnpm test never exits without a terminal

2 participants