From a421fce0191a1628f956c8c0c7ff5aa2762ab863 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leosvel=20P=C3=A9rez=20Espinosa?= Date: Fri, 21 Apr 2023 19:08:46 +0100 Subject: [PATCH] fix(misc): set default e2e test runner when creating angular and next workspaces (#16464) --- 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) {