test(coding-agent): fix showLoadedResources mocks
This commit is contained in:
@@ -136,7 +136,7 @@ describe("InteractiveMode.showLoadedResources", () => {
|
|||||||
diagnostics: options.skillDiagnostics ?? [],
|
diagnostics: options.skillDiagnostics ?? [],
|
||||||
}),
|
}),
|
||||||
getPrompts: () => ({ prompts: [], diagnostics: [] }),
|
getPrompts: () => ({ prompts: [], diagnostics: [] }),
|
||||||
getExtensions: () => ({ errors: [] }),
|
getExtensions: () => ({ extensions: [], errors: [], runtime: {} }),
|
||||||
getThemes: () => ({ themes: [], diagnostics: [] }),
|
getThemes: () => ({ themes: [], diagnostics: [] }),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -145,6 +145,7 @@ describe("InteractiveMode.showLoadedResources", () => {
|
|||||||
formatScopeGroups: () => "resource-list",
|
formatScopeGroups: () => "resource-list",
|
||||||
getShortPath: (p: string) => p,
|
getShortPath: (p: string) => p,
|
||||||
formatDiagnostics: () => "diagnostics",
|
formatDiagnostics: () => "diagnostics",
|
||||||
|
getBuiltInCommandConflictDiagnostics: () => [],
|
||||||
};
|
};
|
||||||
|
|
||||||
return fakeThis;
|
return fakeThis;
|
||||||
@@ -157,7 +158,7 @@ describe("InteractiveMode.showLoadedResources", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
(InteractiveMode as any).prototype.showLoadedResources.call(fakeThis, {
|
(InteractiveMode as any).prototype.showLoadedResources.call(fakeThis, {
|
||||||
extensionPaths: ["/tmp/ext/index.ts"],
|
extensions: [{ path: "/tmp/ext/index.ts" }],
|
||||||
force: false,
|
force: false,
|
||||||
showDiagnosticsWhenQuiet: true,
|
showDiagnosticsWhenQuiet: true,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user