MCPcopy
hub / github.com/xojs/xo / createProject

Function createProject

test/cli.test.ts:21–27  ·  view source on GitHub ↗
(t: TestContext)

Source from the content-addressed store, hash-verified

19@returns The path to the test project.
20*/
21const createProject = async (t: TestContext) => {
22 const cwd = await copyTestProject();
23 t.after(async () => {
24 await fs.rm(cwd, {recursive: true, force: true});
25 });
26 return cwd;
27};
28
29// The tests run concurrently because each gets its own project directory and only shells out to the CLI.
30// Concurrency is capped at the core count since each test spawns a CPU-heavy `node ./dist/cli` subprocess.

Callers 1

cli.test.tsFile · 0.70

Calls 1

copyTestProjectFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…