Skip to content

Commit d1b6e71

Browse files
hanslalexeagle
authored andcommitted
fix(@schematics/angular): use proper project root for e2e
When creating an application, the project root was always "projects/e2e". This is undesired as it leads to conflicts when creating another app. Fix #12491.
1 parent 90e6980 commit d1b6e71

File tree

1 file changed

+1
-1
lines changed
  • packages/schematics/angular/application

1 file changed

+1
-1
lines changed

packages/schematics/angular/application/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ export default function (options: ApplicationOptions): Rule {
279279
name: `${options.name}-e2e`,
280280
relatedAppName: options.name,
281281
rootSelector: appRootSelector,
282-
projectRoot: newProjectRoot ? `${newProjectRoot}/e2e` : 'e2e',
282+
projectRoot: newProjectRoot ? `${newProjectRoot}/${options.name}-e2e` : 'e2e',
283283
};
284284

285285
return chain([

0 commit comments

Comments
 (0)