MCPcopy Index your code
hub / github.com/angular/angular-cli / mktempd

Function mktempd

tests/e2e/utils/utils.ts:21–23  ·  view source on GitHub ↗
(prefix: string, tempRoot?: string)

Source from the content-addressed store, hash-verified

19}
20
21export async function mktempd(prefix: string, tempRoot?: string): Promise<string> {
22 return realpath(await mkdtemp(path.join(tempRoot ?? tmpdir(), prefix)));
23}
24
25export async function mockHome(cb: (home: string) => Promise<void>): Promise<void> {
26 const tempHome = await mktempd('angular-cli-e2e-home-');

Callers 3

e2e_runner.tsFile · 0.90
mockHomeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected