MCPcopy
hub / github.com/foambubble/foam / makeWorkspaceAndGraph

Function makeWorkspaceAndGraph

packages/foam-core/src/query/index.test.ts:12–17  ·  view source on GitHub ↗
(notes: ReturnType<typeof createTestNote>[])

Source from the content-addressed store, hash-verified

10// Helper: build a workspace + graph from a list of notes.
11// Notes are added in order — links are resolved against whatever is in the workspace.
12function makeWorkspaceAndGraph(notes: ReturnType<typeof createTestNote>[]) {
13 const workspace = createTestWorkspace();
14 notes.forEach(n => workspace.set(n));
15 const graph = FoamGraph.fromWorkspace(workspace, false);
16 return { workspace, graph };
17}
18
19// ─── parseFilter ─────────────────────────────────────────────────────────────
20

Callers 1

index.test.tsFile · 0.70

Calls 4

createTestWorkspaceFunction · 0.90
forEachMethod · 0.65
setMethod · 0.65
fromWorkspaceMethod · 0.45

Tested by

no test coverage detected