Skip to content

Commit e4a6fbc

Browse files
ckorhonenclaude
andcommitted
fix: add healthCommand mock to CLI error handler tests
The healthCommand was added to src/commands/index.ts via PR #35 but these test files were not updated to include it in their mock. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3e71a90 commit e4a6fbc

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

test/cli-api-error.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ vi.mock("../src/commands/index.js", () => ({
1212
searchCommand: () => new Command("search"),
1313
swapsCommand: () => new Command("swaps"),
1414
tokensCommand: () => new Command("tokens"),
15+
healthCommand: () => new Command("health"),
1516
}))
1617

1718
const exitSpy = vi

test/cli-network-error.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ vi.mock("../src/commands/index.js", () => ({
1111
searchCommand: () => new Command("search"),
1212
swapsCommand: () => new Command("swaps"),
1313
tokensCommand: () => new Command("tokens"),
14+
healthCommand: () => new Command("health"),
1415
}))
1516

1617
const exitSpy = vi

test/cli-rate-limit.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ vi.mock("../src/commands/index.js", () => ({
1212
searchCommand: () => new Command("search"),
1313
swapsCommand: () => new Command("swaps"),
1414
tokensCommand: () => new Command("tokens"),
15+
healthCommand: () => new Command("health"),
1516
}))
1617

1718
const exitSpy = vi

0 commit comments

Comments
 (0)