MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / projectWith

Function projectWith

test/config-loader-robustness.test.ts:21–29  ·  view source on GitHub ↗
(configYaml: string | null)

Source from the content-addressed store, hash-verified

19 });
20
21 async function projectWith(configYaml: string | null): Promise<string> {
22 const dir = await fs.mkdtemp(path.join(os.tmpdir(), 'qodex-cfg-'));
23 dirs.push(dir);
24 await fs.mkdir(path.join(dir, '.qodex'), { recursive: true });
25 if (configYaml !== null) {
26 await fs.writeFile(path.join(dir, '.qodex', 'config.yaml'), configYaml);
27 }
28 return dir;
29 }
30
31 function expectWellFormed(cfg: unknown) {
32 expect(cfg).not.toBeNull();

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected