From b6845ef084dd4af4d66275df635a2cbceefee1fa Mon Sep 17 00:00:00 2001 From: Alexandre Bodin Date: Thu, 27 Jul 2023 15:53:08 +0200 Subject: [PATCH] Fix generate-test-app always linking packages --- test/helpers/test-app.js | 6 ++++-- test/scripts/run-e2e-tests.js | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/test/helpers/test-app.js b/test/helpers/test-app.js index 7104cea527..e299806325 100644 --- a/test/helpers/test-app.js +++ b/test/helpers/test-app.js @@ -25,7 +25,7 @@ const cleanTestApp = (appPath) => { * @param {string} options.appPath - Name of the app that will be created (also the name of the folder) * @param {database} options.database - Arguments to create the testApp with the provided database params */ -const generateTestApp = async ({ appPath, database, template }) => { +const generateTestApp = async ({ appPath, database, template, link = false }) => { const scope = { database, rootPath: path.resolve(appPath), @@ -54,7 +54,9 @@ const generateTestApp = async ({ appPath, database, template }) => { }; await generateNew(scope); - await linkPackages(appPath); + if (link) { + await linkPackages(appPath); + } }; const linkPackages = async (appPath) => { diff --git a/test/scripts/run-e2e-tests.js b/test/scripts/run-e2e-tests.js index 3a93837a81..b6f178836b 100644 --- a/test/scripts/run-e2e-tests.js +++ b/test/scripts/run-e2e-tests.js @@ -107,6 +107,7 @@ yargs useNullAsDefault: true, }, template: path.join(cwd, 'e2e', 'app-template'), + link: true, }); /** * Because we're running multiple test apps at the same time