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

Function prepareProjectForE2e

tests/e2e/utils/project.ts:41–64  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

39}
40
41export async function prepareProjectForE2e(name: string) {
42 const argv: Record<string, unknown> = getGlobalVariable('argv');
43
44 await git('config', 'user.email', 'angular-core+e2e@google.com');
45 await git('config', 'user.name', 'Angular CLI E2E');
46 await git('config', 'commit.gpgSign', 'false');
47 await git('config', 'core.longpaths', 'true');
48
49 if (argv['ng-snapshots'] || argv['ng-tag']) {
50 await useSha();
51 }
52
53 console.log(`Project ${name} created... Installing packages.`);
54 await installWorkspacePackages();
55
56 await useCIChrome(name, '');
57 await useCIDefaults(name);
58
59 // Force sourcemaps to be from the root of the filesystem.
60 await updateJsonFile('tsconfig.json', (json) => {
61 json['compilerOptions']['sourceRoot'] = '/';
62 });
63 await gitCommit('prepare-project-for-e2e');
64}
65
66export function useBuiltPackagesVersions(): Promise<void> {
67 const packages: { [name: string]: PkgInfo } = getGlobalVariable('package-tars');

Calls 9

getGlobalVariableFunction · 0.90
gitFunction · 0.90
installWorkspacePackagesFunction · 0.90
gitCommitFunction · 0.90
useShaFunction · 0.85
useCIChromeFunction · 0.85
useCIDefaultsFunction · 0.85
updateJsonFileFunction · 0.70
logMethod · 0.65

Tested by

no test coverage detected