fix: add missing branchIsolation field to test objects

This commit is contained in:
Roo Code 2025-10-08 11:10:13 +00:00
parent f34233be29
commit 175480855a

View file

@ -1120,6 +1120,7 @@ describe("CodeIndexConfigManager", () => {
ollamaBaseUrl: undefined,
qdrantUrl: "http://qdrant.local",
qdrantApiKey: undefined,
branchIsolation: false,
}
const requiresRestart = configManager.doesConfigChangeRequireRestart(mockPrevConfig)
@ -1437,6 +1438,7 @@ describe("CodeIndexConfigManager", () => {
embedderProvider: "openai",
openAiKey: "test-key",
qdrantUrl: "http://localhost:6333",
branchIsolation: false,
}
// Update to disabled
@ -1490,6 +1492,7 @@ describe("CodeIndexConfigManager", () => {
enabled: false,
configured: false,
embedderProvider: "openai",
branchIsolation: false,
}
// Same config, still disabled
@ -1514,6 +1517,7 @@ describe("CodeIndexConfigManager", () => {
embedderProvider: "openai",
openAiKey: "test-key",
qdrantUrl: "http://localhost:6333",
branchIsolation: false,
}
const result = configManager.doesConfigChangeRequireRestart(previousSnapshot)
@ -1533,6 +1537,7 @@ describe("CodeIndexConfigManager", () => {
enabled: false,
configured: false,
embedderProvider: "openai",
branchIsolation: false,
}
// Provider changed but feature is disabled