Skip to content

Commit

Permalink
fix(@schematics/angular): use proper project root for e2e
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hansl authored and alexeagle committed Oct 5, 2018
1 parent 90e6980 commit d1b6e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/schematics/angular/application/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export default function (options: ApplicationOptions): Rule {
name: `${options.name}-e2e`,
relatedAppName: options.name,
rootSelector: appRootSelector,
projectRoot: newProjectRoot ? `${newProjectRoot}/e2e` : 'e2e',
projectRoot: newProjectRoot ? `${newProjectRoot}/${options.name}-e2e` : 'e2e',
};

return chain([
Expand Down

0 comments on commit d1b6e71

Please sign in to comment.