Skip to content

Commit d4b7f86

Browse files
committed
test(tests): update all test files to use "claude-sonnet-5" as the default model
1 parent 19012f2 commit d4b7f86

9 files changed

Lines changed: 19 additions & 19 deletions

test/anthropicResponseHandling.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jest.mock("vscode", () => {
6868
get: jest.fn((key: string) => {
6969
switch (key) {
7070
case "model":
71-
return "claude-sonnet-4-0"
71+
return "claude-sonnet-5"
7272
case "maxTokens":
7373
return 1024
7474
case "temperature":

test/commitMessageGenerator.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ describe("CommitMessageGenerator Message Generation", () => {
301301
provider: "ollama",
302302
allowedTypes: ["feat", "fix", "chore"],
303303
maxTokens: 1024,
304-
model: "claude-sonnet-4-0", // This is ignored for Ollama
304+
model: "claude-sonnet-5", // This is ignored for Ollama
305305
temperature: 0.3,
306306
ollamaHostname: "http://localhost:11434",
307307
ollamaModel: "", // This should trigger the error
@@ -328,7 +328,7 @@ describe("CommitMessageGenerator Message Generation", () => {
328328
provider: "ollama",
329329
allowedTypes: ["feat", "fix", "chore"],
330330
maxTokens: 1024,
331-
model: "claude-sonnet-4-0",
331+
model: "claude-sonnet-5",
332332
temperature: 0.3,
333333
ollamaHostname: "http://localhost:11434",
334334
ollamaModel: "test-model",
@@ -357,7 +357,7 @@ describe("CommitMessageGenerator Message Generation", () => {
357357
provider: "ollama",
358358
allowedTypes: ["feat", "fix", "chore"],
359359
maxTokens: 1024,
360-
model: "claude-sonnet-4-0",
360+
model: "claude-sonnet-5",
361361
temperature: 0.3,
362362
ollamaHostname: "http://localhost:11434",
363363
ollamaModel: "test-model",
@@ -391,7 +391,7 @@ describe("CommitMessageGenerator Message Generation", () => {
391391
provider: "ollama",
392392
allowedTypes: ["feat", "fix", "chore"],
393393
maxTokens: 1024,
394-
model: "claude-sonnet-4-0",
394+
model: "claude-sonnet-5",
395395
temperature: 0.3,
396396
ollamaHostname: "http://localhost:11434",
397397
ollamaModel: "test-model",
@@ -418,7 +418,7 @@ describe("CommitMessageGenerator Message Generation", () => {
418418
provider: "ollama",
419419
allowedTypes: ["feat", "fix", "chore"],
420420
maxTokens: 1024,
421-
model: "claude-sonnet-4-0",
421+
model: "claude-sonnet-5",
422422
temperature: 0.3,
423423
ollamaHostname: "http://localhost:11434",
424424
ollamaModel: "test-model",

test/configurationEdgeCases.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ describe("Configuration Edge Cases", () => {
6060

6161
// Reset config for each test
6262
mockConfig = {
63-
model: "claude-3-7-sonnet-latest",
63+
model: "claude-sonnet-5",
6464
maxTokens: 1024,
6565
temperature: 0.3,
6666
allowedTypes: ["feat", "fix", "refactor", "chore", "docs", "style", "test", "perf", "ci"],
@@ -129,7 +129,7 @@ describe("Configuration Edge Cases", () => {
129129

130130
expect(mockAnthropicCreate).toHaveBeenCalledWith(
131131
expect.objectContaining({
132-
model: "claude-sonnet-4-0",
132+
model: "claude-sonnet-5",
133133
}),
134134
)
135135
})

test/configurationHandling.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ describe("Configuration Handling", () => {
124124
provider: "ollama",
125125
ollamaHostname: "http://localhost:11434",
126126
ollamaModel: "llama2",
127-
model: "claude-sonnet-4-0", // Not used for Ollama but still configured
127+
model: "claude-sonnet-5", // Not used for Ollama but still configured
128128
maxTokens: 1000,
129129
temperature: 0.3,
130130
}

test/errorHandling.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ describe("Error Handling", () => {
151151
;(vscode.workspace as any).getConfiguration = () => ({
152152
get: (key: string) => {
153153
const defaults: { [key: string]: any } = {
154-
model: "claude-sonnet-4-0",
154+
model: "claude-sonnet-5",
155155
maxTokens: 1024,
156156
temperature: 0.2,
157157
provider: "anthropic",
@@ -397,7 +397,7 @@ describe("Error Handling", () => {
397397
provider: "ollama",
398398
ollamaHostname: "http://localhost:11434",
399399
ollamaModel: "llama3.2",
400-
model: "claude-sonnet-4-0",
400+
model: "claude-sonnet-5",
401401
maxTokens: 1000,
402402
temperature: 0.3,
403403
allowedTypes: ["feat", "fix", "refactor", "chore", "docs", "style", "test", "perf", "ci"],

test/extension.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ describe("Extension Core Functionality", () => {
6666
mockConfigManager = {
6767
getConfig: jest.fn().mockReturnValue({
6868
provider: "anthropic",
69-
model: "claude-sonnet-4-0",
69+
model: "claude-sonnet-5",
7070
maxTokens: 1024,
7171
temperature: 0.2,
7272
allowedTypes: ["feat", "fix", "refactor", "chore", "docs", "style", "test", "perf", "ci"],
@@ -166,7 +166,7 @@ describe("Extension Core Functionality", () => {
166166
provider: "ollama",
167167
ollamaHostname: "http://localhost:11434",
168168
ollamaModel: "",
169-
model: "claude-sonnet-4-0",
169+
model: "claude-sonnet-5",
170170
maxTokens: 1024,
171171
temperature: 0.2,
172172
allowedTypes: ["feat", "fix", "refactor", "chore", "docs", "style", "test", "perf", "ci"],
@@ -186,7 +186,7 @@ describe("Extension Core Functionality", () => {
186186
provider: "ollama",
187187
ollamaHostname: "http://localhost:11434",
188188
ollamaModel: "llama2",
189-
model: "claude-sonnet-4-0",
189+
model: "claude-sonnet-5",
190190
maxTokens: 1024,
191191
temperature: 0.2,
192192
allowedTypes: ["feat", "fix", "refactor", "chore", "docs", "style", "test", "perf", "ci"],

test/gitIntegration.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jest.mock("vscode", () => {
4848
get: jest.fn((key: string) => {
4949
switch (key) {
5050
case "model":
51-
return "claude-sonnet-4-0"
51+
return "claude-sonnet-5"
5252
case "maxTokens":
5353
return 1024
5454
case "temperature":
@@ -215,7 +215,7 @@ describe("Git Integration", () => {
215215

216216
expect(mockGitRepo.diff).toHaveBeenCalledWith(true)
217217
expect(mockAnthropicCreate).toHaveBeenCalledWith({
218-
model: "claude-sonnet-4-0",
218+
model: "claude-sonnet-5",
219219
max_tokens: 1024,
220220
temperature: 0.2,
221221
system: expect.any(String),
@@ -237,7 +237,7 @@ describe("Git Integration", () => {
237237

238238
expect(mockGitRepo.diff).toHaveBeenCalledWith(true)
239239
expect(mockAnthropicCreate).toHaveBeenCalledWith({
240-
model: "claude-sonnet-4-0",
240+
model: "claude-sonnet-5",
241241
max_tokens: 1024,
242242
temperature: 0.2,
243243
system: expect.any(String),

test/messageHandling.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ describe("Message Handling", () => {
8484
// Set up default configuration
8585
configGetMock.mockImplementation((key: string) => {
8686
const defaults: { [key: string]: any } = {
87-
model: "claude-sonnet-4-0",
87+
model: "claude-sonnet-5",
8888
maxTokens: 1024,
8989
temperature: 0.2,
9090
allowedTypes: ["feat", "fix", "refactor", "chore", "docs", "style", "test", "perf", "ci"],

test/withProgressAPI.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describe("Progress API Integration", () => {
4343

4444
// Mock ConfigManager
4545
;(ConfigManager.prototype.getConfig as jest.Mock).mockReturnValue({
46-
model: "claude-sonnet-4-0",
46+
model: "claude-sonnet-5",
4747
maxTokens: 1024,
4848
temperature: 0.2,
4949
provider: "anthropic",

0 commit comments

Comments
 (0)