From 8d1d272603c9d3710ced7025e8a4b6c164001083 Mon Sep 17 00:00:00 2001 From: Emilien Escalle Date: Wed, 28 Aug 2024 09:54:16 +0200 Subject: [PATCH] test(core): assert installation does not output errors Signed-off-by: Emilien Escalle --- packages/core/src/core.spec.e2e.ts | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/core/src/core.spec.e2e.ts b/packages/core/src/core.spec.e2e.ts index 1f068e9d..e7f11d5e 100644 --- a/packages/core/src/core.spec.e2e.ts +++ b/packages/core/src/core.spec.e2e.ts @@ -59,13 +59,12 @@ describe(`E2E - ${packageToTest}`, () => { afterEach(() => shouldCleanupAfterTest && deleteFolderRecursive(testSimpleProjectDir)); it(`Installs ${packageToTest} package`, async () => { - const { - code: installPackageCode, - // stderr: installPackageStderr - } = await exec(testSimpleProjectDir, `yarn add --dev "file:/${packagePath}"`); + const { code: installPackageCode, stderr: installPackageStderr } = await exec( + testSimpleProjectDir, + `yarn add --dev "file:/${packagePath}"` + ); - // FIXME: installation ouput warnings due to dependencies - // expect(installPackageStderr).toBeFalsy(); + expect(installPackageStderr).toBeFalsy(); expect(installPackageCode).toBe(0); const { @@ -114,11 +113,12 @@ describe(`E2E - ${packageToTest}`, () => { afterEach(() => shouldCleanupAfterTest && deleteFolderRecursive(testMonorepoProjectDir)); it(`Installs ${packageToTest} package`, async () => { - const { - code: installPackageCode, - // stderr: installPackageStderr - } = await exec(testMonorepoProjectDir, `yarn add -W --dev "file:${packagePath}"`); - // expect(installPackageStderr).toBeFalsy(); + const { code: installPackageCode, stderr: installPackageStderr } = await exec( + testMonorepoProjectDir, + `yarn add -W --dev "file:${packagePath}"` + ); + + expect(installPackageStderr).toBeFalsy(); expect(installPackageCode).toBe(0); const {