Skip to main content
MediumBug fixJavaScript45 min

Client Library: Requests Interfere and Responses Change Shape

A practice debugging interview round in JavaScript. Reproduce the failure in an unfamiliar codebase, narrow down the cause, ship a minimal fix, and explain your reasoning to an AI interviewer.

The incident

You are maintaining Parcel, an unfamiliar HTTP client library. Callers report requests affecting later calls, unexpected raw response strings, and failures on successful empty responses.

Read README.md and trace the visible tests through src/client.js before editing. Repair the library modules while keeping the public API, ordinary text responses, transport failures, and HTTP errors unchanged. The injected transport is deterministic and performs no real network calls. Explain each independent regression and the evidence that your repair preserves other callers.

What this round practices

You maintain a small HTTP client you have never seen, with three caller complaints that may share a cause or may not. The round practices tracing calls through someone else's library from its tests, and keeping the public API unchanged while you repair the internals.

Files you will work in

These 6 workspace files open in the in-browser editor when you start the round. Hidden tests also run when you submit.

  • task.md
  • README.md
  • src/client.js
  • src/headers.js
  • src/response.js
  • tests/client.test.js

What you are assessed on

The scored report evaluates both your investigation steps and what you explain during the conversation, not only whether the final test run passes.

  • Reproduction
  • File navigation
  • Evidence gathering
  • Hypothesis
  • Root-cause understanding
  • Regression prevention
  • Patch scope
  • Verification
  • Edit control
  • Communication clarity

How the round works

You get 45 minutes in a JavaScript workspace that runs in your browser, with no setup. Talk through your plan with the AI interviewer by voice or text, run the tests as often as you like, and submit when the visible checks pass. Hidden tests run on submit, and the scored report covers what you did and what you explained.

Ready to debug this codebase?

Open the workspace, run the failing check first, and walk the AI interviewer through your findings.