Skip to content

Commit 9d0223f

Browse files
totobusnelloclaude
andcommitted
test(agents): fix backend output literal typing in reliability fixture
The jsonl/text ternary widened to string without a const assertion (tsc TS2322), but a full type assertion tripped oxlint no-unnecessary-type-assertion. Use per-branch `as const` to satisfy both lint and typecheck. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent ac2f807 commit 9d0223f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/agents/cli-runner.reliability.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ function buildPreparedContext(params?: {
149149
const backend = {
150150
command: useJsonl ? "claude" : "codex",
151151
args: useJsonl ? ["-p", "--output-format", "stream-json", "--verbose"] : ["exec", "--json"],
152-
output: (useJsonl ? "jsonl" : "text") as "jsonl" | "text",
152+
output: useJsonl ? ("jsonl" as const) : ("text" as const),
153153
input: "arg" as const,
154154
modelArg: "--model",
155155
sessionMode: "existing" as const,

0 commit comments

Comments
 (0)