MCPcopy
hub / github.com/lerna/lerna / readWorkspaceFile

Method readWorkspaceFile

libs/e2e-utils/src/lib/fixture.ts:175–177  ·  view source on GitHub ↗

* Read the contents of a given file within the lerna workspace under test.

(file: string)

Source from the content-addressed store, hash-verified

173 * Read the contents of a given file within the lerna workspace under test.
174 */
175 async readWorkspaceFile(file: string): Promise<string> {
176 return readFile(this.getWorkspacePath(file), "utf-8");
177 }
178
179 /**
180 * Check if a workspace file exists.

Calls 1

getWorkspacePathMethod · 0.95

Tested by

no test coverage detected