test(proxy): add adversarial DAP scenario fixture - #545
Merged
debugmcpdev merged 2 commits intoAug 28, 2026
Conversation
Signed-off-by: JF <john.franklin@gmail.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ProxyConfig.adapterCommandseamCloses #511
Validation
pnpm run buildpnpm run lintpnpm run test:unit(4,272 passed)pnpm run test:integration(28 passed, 5 skipped)pnpm run check:personal-pathspnpm run check:all-personal-pathsgit diff --checknode --check tests/fixtures/adversarial-adapter/server.mjsThe new integration suite drives the compiled proxy bootstrap, worker IPC, adapter process manager, real loopback TCP socket,
MinimalDapClient, and shared DAP framing decoder. It verifies:initializedarrives but theinitializeresponse is absentlaunchis the stalled requestDogfooding
Used the source dev proxy to debug the new fixture itself with the JavaScript adapter. A statement breakpoint in the scenario dispatcher exposed the raw request and selected rule; locals and expression evaluation confirmed the delay, junk-prefix, and duplicate-response controls before stepping and continuing. A raw TCP request then received the fixture's adversarial output. The only shutdown warning reproduced the already-known #527 behavior covered by #542; no new unique defect was found.