MCPcopy Create free account
hub / github.com/chhoumann/MetaEdit / createParser

Function createParser

src/parser.test.ts:7–18  ·  view source on GitHub ↗
(cache: unknown, content: string)

Source from the content-addressed store, hash-verified

5import {MetaType} from "./Types/metaType";
6
7const createParser = (cache: unknown, content: string): MetaEditParser => {
8 const app = {
9 metadataCache: {
10 getFileCache: vi.fn().mockReturnValue(cache),
11 },
12 vault: {
13 cachedRead: vi.fn().mockResolvedValue(content),
14 },
15 };
16
17 return new MetaEditParser(app as any);
18};
19
20// Inline parsing is pure: drive it directly with a string so the many edge
21// cases read clearly.

Callers 1

parser.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected