From d1b6e71b35e0ccd3c784dd71c83bb74d7c63bcb9 Mon Sep 17 00:00:00 2001 From: Hans Date: Fri, 5 Oct 2018 10:46:29 -0700 Subject: [PATCH] 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. --- packages/schematics/angular/application/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/schematics/angular/application/index.ts b/packages/schematics/angular/application/index.ts index a5b061c52a69..4020f216c676 100644 --- a/packages/schematics/angular/application/index.ts +++ b/packages/schematics/angular/application/index.ts @@ -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([