Repository navigation
fix: run pnpm test once - #461
Conversation
|
Note Nothing here is code, only docs, data or images, so PR Lens left this pull request undrawn. Comment
|
|
Warning Review limit reachedYou'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. View limit details
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. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
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
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
🔸 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
testscript runs once and exits without a TTY.