Skip to content

fix: stop emitting a process-wide SIGINT in run-method.test so the CLI suite passes on Windows - #1995

Draft
olaservo wants to merge 1 commit into
v2/mainfrom
v2/fix/1941-cli-vitest-teardown-crash
Draft

fix: stop emitting a process-wide SIGINT in run-method.test so the CLI suite passes on Windows#1995
olaservo wants to merge 1 commit into
v2/mainfrom
v2/fix/1941-cli-vitest-teardown-crash

Conversation

@olaservo

Copy link
Copy Markdown
Member

Closes #1941

Test-only. process.emit("SIGINT") also woke when-exit's module-load handler (pulled in via atomically), whose process.kill(pid, "SIGINT") re-raise is an unconditional TerminateProcess on Windows — killing the vitest worker mid-test. The test now captures the one listener consumeMethodOutcome registers and invokes it directly, which also strengthens the assertion. Verified: full suite green on Windows (25 files, 304 tests), plus typecheck. Full root-cause in the issue comment.

🤖 Generated with Claude Code

…t instead of emitting a process-wide signal

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@olaservo olaservo added the v2 Issues and PRs for v2 label Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v2 Issues and PRs for v2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant