Skip to content

Commit e1b45b7

Browse files
taltasclaude
andcommitted
fix(cli): remove unused variables in test files
Remove unused 'host' variables in autonomous mode tests and unused 'vi' import in json-event-emitter-result.test.ts to fix ESLint no-unused-vars errors. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 69b7518 commit e1b45b7

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

apps/cli/src/agent/__tests__/extension-host.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ describe("ExtensionHost", () => {
942942
it("should set ROO_CLI_AUTONOMOUS environment variable when autonomous is true", () => {
943943
const originalValue = process.env.ROO_CLI_AUTONOMOUS
944944

945-
const host = createTestHost({ autonomous: true })
945+
createTestHost({ autonomous: true })
946946

947947
expect(process.env.ROO_CLI_AUTONOMOUS).toBe("1")
948948

@@ -958,7 +958,7 @@ describe("ExtensionHost", () => {
958958
const originalValue = process.env.ROO_CLI_AUTONOMOUS
959959
delete process.env.ROO_CLI_AUTONOMOUS
960960

961-
const host = createTestHost({ autonomous: false })
961+
createTestHost({ autonomous: false })
962962

963963
expect(process.env.ROO_CLI_AUTONOMOUS).toBeUndefined()
964964

apps/cli/src/agent/__tests__/json-event-emitter-result.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { ClineMessage } from "@roo-code/types"
22
import { Writable } from "stream"
3-
import { vi } from "vitest"
43

54
import type { TaskCompletedEvent } from "../events.js"
65
import { JsonEventEmitter } from "../json-event-emitter.js"

0 commit comments

Comments
 (0)