Skip to content

Commit 975d2c9

Browse files
jrusso1020claude
andcommitted
test(cli): neutralize agent detection in the catalog offer tests through isAgentDriven
Attendance now reads isAgentDriven(), so that is what the catalog tests stub to stay independent of the agent running the suite. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
1 parent e84ae3f commit 975d2c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/cli/src/commands/catalog.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ vi.mock("../registry/remote.js", () => ({
117117
// The terminal and CI switches below decide attendance; the agent running the suite must not.
118118
vi.mock("../telemetry/agent_runtime.js", async (importOriginal) => ({
119119
...(await importOriginal<typeof import("../telemetry/agent_runtime.js")>()),
120-
detectAgentRuntime: () => null,
120+
isAgentDriven: () => false,
121121
}));
122122
vi.mock("@clack/prompts", () => ({
123123
confirm: async () => state.confirmAnswer,

0 commit comments

Comments
 (0)