MCPcopy
hub / github.com/freshframework/fresh / testInitProject

Function testInitProject

packages/init/src/init_test.ts:19–21  ·  view source on GitHub ↗
(cwd, input, flags = {})

Source from the content-addressed store, hash-verified

17(globalThis as any).INIT_TEST = true;
18
19const testInitProject: typeof initProject = async (cwd, input, flags = {}) => {
20 return await initProject(cwd, input, { ...flags, skipInstall: true });
21};
22
23function stubPrompt(result: string) {
24 return stub(globalThis, "prompt", () => result);

Callers 1

init_test.tsFile · 0.85

Calls 1

initProjectFunction · 0.90

Tested by

no test coverage detected