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(core): remove dead import and unnecessary type cast in domain persistence test

Lum11049693e1efee9d
diff --git a/understand-anything-plugin/packages/core/src/__tests__/domain-persistence.test.ts b/understand-anything-plugin/packages/core/src/__tests__/domain-persistence.test.ts
index 20845c3e..4543a0cb 100644
--- a/understand-anything-plugin/packages/core/src/__tests__/domain-persistence.test.ts
+++ b/understand-anything-plugin/packages/core/src/__tests__/domain-persistence.test.ts
@@ -1,5 +1,5 @@
import { describe, it, expect, beforeEach, afterEach } from "vitest";
-import { mkdirSync, rmSync, existsSync, readFileSync } from "node:fs";
+import { mkdirSync, rmSync, existsSync } from "node:fs";
import { join } from "node:path";
import { tmpdir } from "node:os";
import { saveDomainGraph, loadDomainGraph } from "../persistence/index.js";
@@ -20,7 +20,7 @@ const domainGraph: KnowledgeGraph = {
nodes: [
{
id: "domain:orders",
- type: "domain" as any,
+ type: "domain",
name: "Orders",
summary: "Order management",
tags: [],