Skip to main content
← Back to list
01Issue
FeatureShippedSwamp CLIPublic
Assigneesstack72

Relationships

#3090 swamp-testing withMockedCommand: record env and cwd in CapturedCommandCall

Opened by stack72 · 10/6/2026· Shipped 10/6/2026

withMockedCommand in the @systeminit/swamp-testing JSR package records only command, args and timestamp for each Deno.Command call. The options object (env, cwd, clearEnv) is dropped by the MockCommand constructor, so tests cannot assert what environment an extension passes to a child process. Request: add optional env, cwd and clearEnv fields to CapturedCommandCall, copied from the Deno.Command options. Motivation: swamp-club #2789 makes @swamp/1password pass OP_SERVICE_ACCOUNT_TOKEN only to the op child via the env option; its tests currently need a local Deno.Command stub to verify this, which can be removed once the helper captures env.

02Bog Flow
✓OPEN✓TRIAGED✓IN PROGRESS✓SHIPPED+ 1 MOREASSIGNED+ 2 MOREREVIEW+ 10 MOREPR_MERGED+ 2 MORESESSION_SUMMARIZED

Shipped

10/6/2026, 7:31:14 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack7210/6/2026, 7:04:46 PM

Sign in to post a ripple.