MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / createFile

Function createFile

tests/unit/utils/DependencyCache.optimization.test.ts:52–57  ·  view source on GitHub ↗
(app: MockApp, path: string, frontmatter: Record<string, unknown>)

Source from the content-addressed store, hash-verified

50}
51
52function createFile(app: MockApp, path: string, frontmatter: Record<string, unknown>): TFile {
53 const file = new TFile(path);
54 app.__files.set(path, file);
55 app.__metadata.set(path, { frontmatter });
56 return file;
57}
58
59function createDependencyCache(app: MockApp): DependencyCache {
60 return new DependencyCache(

Calls 1

setMethod · 0.65

Tested by

no test coverage detected