MCPcopy Index your code
hub / github.com/freshframework/fresh / readProjectFile

Function readProjectFile

packages/init/src/init_test.ts:156–160  ·  view source on GitHub ↗
(dir: string, pathname: string)

Source from the content-addressed store, hash-verified

154}
155
156async function readProjectFile(dir: string, pathname: string): Promise<string> {
157 const filePath = path.join(dir, ...pathname.split("/").filter(Boolean));
158 const content = await Deno.readTextFile(filePath);
159 return content;
160}
161
162Deno.test("init - show help", async () => {
163 using logs = stubLogs();

Callers 1

init_test.tsFile · 0.85

Calls 1

readTextFileMethod · 0.80

Tested by

no test coverage detected