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:
@@ -175,7 +175,10 @@ describe("InteractiveMode.showLoadedResources", () => {
|
||||
},
|
||||
session: {
|
||||
promptTemplates: [],
|
||||
extensionRunner: undefined,
|
||||
extensionRunner: {
|
||||
getCommandDiagnostics: () => [],
|
||||
getShortcutDiagnostics: () => [],
|
||||
},
|
||||
resourceLoader: {
|
||||
getPathMetadata: () => new Map(),
|
||||
getAgentsFiles: () => ({ agentsFiles: options.contextFiles ?? [] }),
|
||||
|
||||
Reference in New Issue
Block a user