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

Function createCliDeps

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

Source from the content-addressed store, hash-verified

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

Callers 3

cli.test.tsFile · 0.85
createPostApiDepsFunction · 0.85
createTwoProfileDepsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected