MCPcopy Create free account
hub / github.com/EvilFreelancer/openapi-to-cli / createStoreWithFs

Function createStoreWithFs

tests/profile-store.test.ts:72–81  ·  view source on GitHub ↗
(
  cwd: string,
  homeDir: string,
  files: Record<string, string>
)

Source from the content-addressed store, hash-verified

70}
71
72function createStoreWithFs(
73 cwd: string,
74 homeDir: string,
75 files: Record<string, string>
76): { store: ProfileStore; fs: MemoryFs } {
77 const fs = new MemoryFs(files);
78 const locator = new ConfigLocator({ fs, homeDir });
79 const store = new ProfileStore({ fs, locator });
80 return { store, fs };
81}
82
83describe("ProfileStore", () => {
84 const homeDir = "/home/user";

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected