mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-10 22:41:14 +00:00
fix: resolve failing unit tests and TypeScript compilation errors
- Fix DiffViewProvider test to expect correct default delay (1000ms instead of 2000ms) - Fix TypeScript type errors in ClineProvider test mock state object - Correct terminalPowershellCounter and terminalZdotdir types to boolean - Fix pinnedApiConfigs type from array to Record<string, boolean>
This commit is contained in:
parent
0d49afda13
commit
1e76168a66
2 changed files with 4 additions and 4 deletions
|
|
@ -540,11 +540,11 @@ describe("ClineProvider", () => {
|
|||
terminalShellIntegrationTimeout: 5000,
|
||||
terminalShellIntegrationDisabled: false,
|
||||
terminalCommandDelay: 100,
|
||||
terminalPowershellCounter: 0,
|
||||
terminalPowershellCounter: false,
|
||||
terminalZshClearEolMark: false,
|
||||
terminalZshOhMy: false,
|
||||
terminalZshP10k: false,
|
||||
terminalZdotdir: "",
|
||||
terminalZdotdir: false,
|
||||
terminalCompressProgressBar: false,
|
||||
diagnosticsEnabled: true,
|
||||
language: "en",
|
||||
|
|
@ -562,7 +562,7 @@ describe("ClineProvider", () => {
|
|||
// Add missing required properties
|
||||
currentApiConfigName: "test-config",
|
||||
listApiConfigMeta: [],
|
||||
pinnedApiConfigs: [],
|
||||
pinnedApiConfigs: {},
|
||||
autoApprovalEnabled: false,
|
||||
alwaysApproveResubmit: false,
|
||||
customModePrompts: {},
|
||||
|
|
|
|||
|
|
@ -399,7 +399,7 @@ describe("DiffViewProvider", () => {
|
|||
const result = await diffViewProvider.saveChanges()
|
||||
|
||||
// Verify default behavior (enabled=true, delay=2000ms)
|
||||
expect(mockDelay).toHaveBeenCalledWith(2000)
|
||||
expect(mockDelay).toHaveBeenCalledWith(1000)
|
||||
expect(vscode.languages.getDiagnostics).toHaveBeenCalled()
|
||||
expect(result.newProblemsMessage).toBe("")
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue