From 0fdc542738b0afff3c9a6f1b20e0f39dcda5f404 Mon Sep 17 00:00:00 2001 From: "Castro, Mario" Date: Thu, 5 Dec 2024 14:40:24 -0300 Subject: [PATCH] Fix broken project CLI tests --- .../cli/cli.project.integration.ts | 69 ++++++++++++------- 1 file changed, 46 insertions(+), 23 deletions(-) diff --git a/packages/framework-integration-tests/integration/provider-unaware/cli/cli.project.integration.ts b/packages/framework-integration-tests/integration/provider-unaware/cli/cli.project.integration.ts index 755a72f2a..a6e7a0220 100644 --- a/packages/framework-integration-tests/integration/provider-unaware/cli/cli.project.integration.ts +++ b/packages/framework-integration-tests/integration/provider-unaware/cli/cli.project.integration.ts @@ -242,13 +242,20 @@ describe('Project', () => { it('should create a new project using short flags to configure it', async () => { const projectName = 'cart-demo-short-flags' const flags = [ - `-a "${AUTHOR}"`, - `-d "${DESCRIPTION}"`, - `-H "${HOMEPAGE}"`, - `-l "${LICENSE}"`, - `-p "${PROVIDER}"`, - `-r "${REPO_URL}"`, - `-v "${VERSION}"`, + '-a', + AUTHOR, + '-d', + DESCRIPTION, + '-H', + HOMEPAGE, + '-l', + LICENSE, + '-p', + PROVIDER, + '-r', + REPO_URL, + '-v', + VERSION, // We skip dependencies and git installation to make this test faster '--skipInstall', '--skipGit', @@ -261,13 +268,20 @@ describe('Project', () => { it('should create a new project using long flags to configure it', async () => { const projectName = 'cart-demo-long-flags' const flags = [ - `--author "${AUTHOR}"`, - `--description "${DESCRIPTION}"`, - `--homepage "${HOMEPAGE}"`, - `--license "${LICENSE}"`, - `--providerPackageName "${PROVIDER}"`, - `--repository "${REPO_URL}"`, - `--version "${VERSION}"`, + '--author', + AUTHOR, + '--description', + DESCRIPTION, + '--homepage', + HOMEPAGE, + '--license', + LICENSE, + '--providerPackageName', + PROVIDER, + '--repository', + REPO_URL, + '--version', + VERSION, // We skip dependencies and git installation to make this test faster '--skipInstall', '--skipGit', @@ -374,8 +388,10 @@ describe('Project', () => { license: LICENSE, } const flags = [ - `--providerPackageName "${PROVIDER}"`, - `--repository "${REPO_URL}"`, + '--providerPackageName', + PROVIDER, + '--repository', + REPO_URL, // We skip dependencies and git installation to make this test faster '--skipInstall', '--skipGit', @@ -403,13 +419,20 @@ describe('Project', () => { ) const flags = [ - `--author "${AUTHOR}"`, - `--description "${DESCRIPTION}"`, - `--homepage "${HOMEPAGE}"`, - `--license "${LICENSE}"`, - '--providerPackageName "invalid-provider"', - `--repository "${REPO_URL}"`, - `--version "${VERSION}"`, + '--author ', + AUTHOR, + '--description', + DESCRIPTION, + '--homepage', + HOMEPAGE, + '--license', + LICENSE, + '--providerPackageName', + 'invalid-provider', + '--repository', + REPO_URL, + '--version', + VERSION, // We skip dependencies and git installation to make this test faster '--skipInstall', '--skipGit',