From 28a374591e3ea5519b3f5151ae245bdf52cf3103 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leosvel=20P=C3=A9rez=20Espinosa?= Date: Fri, 21 Apr 2023 18:15:30 +0100 Subject: [PATCH] fix(misc): set default e2e test runner when creating angular and next workspaces --- packages/workspace/src/generators/preset/preset.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/workspace/src/generators/preset/preset.ts b/packages/workspace/src/generators/preset/preset.ts index e791a8bff9987..6efb367d48543 100644 --- a/packages/workspace/src/generators/preset/preset.ts +++ b/packages/workspace/src/generators/preset/preset.ts @@ -33,7 +33,7 @@ async function createPreset(tree: Tree, options: Schema) { linter: options.linter, standalone: options.standaloneApi, routing: options.routing, - e2eTestRunner: options.e2eTestRunner, + e2eTestRunner: options.e2eTestRunner ?? 'cypress', }); } else if (options.preset === Preset.AngularStandalone) { const { @@ -91,6 +91,7 @@ async function createPreset(tree: Tree, options: Schema) { style: options.style, linter: options.linter, appDir: options.nextAppDir, + e2eTestRunner: options.e2eTestRunner ?? 'cypress', rootProject: true, }); } else if (options.preset === Preset.WebComponents) {