Skip to content

fix: pass debug flag to runner - #96

Merged
chgeo merged 6 commits into
mainfrom
fix/debug-flags-for-test-workers
Aug 4, 2026
Merged

fix: pass debug flag to runner#96
chgeo merged 6 commits into
mainfrom
fix/debug-flags-for-test-workers

Conversation

@PDT42

@PDT42 PDT42 commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Currently, debug flags will not correctly be applied to node-test workers. In a debug terminal, tests hang because flag --inspect-brk may be used, rather than --inspect; when no connection with the debugger is made - the test hangs. This can be mitigated by limiting to a single worker (i.e. 'node:test'.run) when debugging; and passing a inspectPort configuration.

Verified by running chest tests in a VSCode Javascript Debug Terminal using npm t some.test.js.

@PDT42
PDT42 marked this pull request as ready for review June 11, 2026 06:28
@chgeo

chgeo commented Aug 4, 2026

Copy link
Copy Markdown
Member

@PDT42 please provide a changelog entry.

@PDT42
PDT42 requested a review from chgeo August 4, 2026 14:52
@chgeo
chgeo enabled auto-merge (squash) August 4, 2026 14:53
@chgeo
chgeo merged commit 1304e9d into main Aug 4, 2026
4 checks passed
@chgeo
chgeo deleted the fix/debug-flags-for-test-workers branch August 4, 2026 14:54
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.

2 participants