MCPcopy
hub / github.com/lerna/lerna / getWorkspacePath

Method getWorkspacePath

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

* Resolve the file path of a given file within the lerna workspace under test.

(path?: string)

Source from the content-addressed store, hash-verified

166 * Resolve the file path of a given file within the lerna workspace under test.
167 */
168 getWorkspacePath(path?: string): string {
169 return path ? joinPathFragments(this.fixtureWorkspacePath, path) : this.fixtureWorkspacePath;
170 }
171
172 /**
173 * Read the contents of a given file within the lerna workspace under test.

Callers 15

readWorkspaceFileMethod · 0.95
workspaceFileExistsMethod · 0.95
addNxJsonToWorkspaceMethod · 0.95
updateJsonMethod · 0.95
init-pnpm.spec.tsFile · 0.80
init-npm.spec.tsFile · 0.80
init-yarn.spec.tsFile · 0.80
formatting.spec.tsFile · 0.80
setupYarnBerryFunction · 0.80

Calls

no outgoing calls

Tested by 1

setupYarnBerryFunction · 0.64