Skip to content

Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.

Fix ImportResolution test fixture

Lum1104e7ad9d6d69f6
diff --git a/understand-anything-plugin/packages/core/src/__tests__/plugin-registry.test.ts b/understand-anything-plugin/packages/core/src/__tests__/plugin-registry.test.ts
index 6f3b9064..8000924f 100644
--- a/understand-anything-plugin/packages/core/src/__tests__/plugin-registry.test.ts
+++ b/understand-anything-plugin/packages/core/src/__tests__/plugin-registry.test.ts
@@ -158,7 +158,11 @@ describe("PluginRegistry", () => {
const registry = new PluginRegistry();
const plugin = createMockPlugin("ts-plugin", ["typescript"]);
const mockImports: ImportResolution[] = [
- { importPath: "./utils", resolvedPath: "./utils.ts" },
+ {
+ source: "./utils",
+ resolvedPath: "./utils.ts",
+ specifiers: [],
+ },
];
plugin.resolveImports = () => mockImports;
registry.register(plugin);