test(coding-agent): fix showLoadedResources mocks (#3518)

Add getCommandDiagnostics and getShortcutDiagnostics mocks to fix
'Cannot read properties of undefined' errors in InteractiveMode tests.

regression from 32a305cb
This commit is contained in:
Aliou Diallo
2026-04-21 23:05:38 +02:00
committed by GitHub
parent 4b926a30a2
commit 81de426f96

View File

@@ -175,7 +175,10 @@ describe("InteractiveMode.showLoadedResources", () => {
},
session: {
promptTemplates: [],
extensionRunner: undefined,
extensionRunner: {
getCommandDiagnostics: () => [],
getShortcutDiagnostics: () => [],
},
resourceLoader: {
getPathMetadata: () => new Map(),
getAgentsFiles: () => ({ agentsFiles: options.contextFiles ?? [] }),