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

Function copyProjectAsset

tests/e2e/utils/assets.ts:14–20  ·  view source on GitHub ↗
(assetName: string, to?: string)

Source from the content-addressed store, hash-verified

12}
13
14export function copyProjectAsset(assetName: string, to?: string) {
15 const tempRoot = join(getGlobalVariable('projects-root'), 'test-project');
16 const sourcePath = assetDir(assetName);
17 const targetPath = join(tempRoot, to || assetName);
18
19 return copyFile(sourcePath, targetPath);
20}
21
22export function copyAssets(assetName: string, to?: string) {
23 const seed = +Date.now();

Callers 1

browsers.tsFile · 0.90

Calls 4

getGlobalVariableFunction · 0.90
copyFileFunction · 0.90
joinFunction · 0.85
assetDirFunction · 0.85

Tested by

no test coverage detected