From 0b0f342359c748cef081c16634dc8416d962c60d Mon Sep 17 00:00:00 2001 From: Tycho Bokdam Date: Sun, 24 Dec 2023 17:34:43 +0100 Subject: [PATCH] refactor(e2e): Misc changes to `runNxCommandAsync` --- e2e/utils/run-nx-command-async.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/e2e/utils/run-nx-command-async.ts b/e2e/utils/run-nx-command-async.ts index f0d45fab..5741b67b 100644 --- a/e2e/utils/run-nx-command-async.ts +++ b/e2e/utils/run-nx-command-async.ts @@ -1,18 +1,18 @@ import { runNxCommandAsync as _runNxCommandAsync } from '@nx/plugin/testing' export async function runNxCommandAsync(command: string, options: { env?: object } = {}): Promise { - const { stdout, stderr } = await _runNxCommandAsync(command, { + const { stdout, stderr } = await _runNxCommandAsync(`${command} --verbose`, { silenceError: true, env: { + CI: 'true', YARN_ENABLE_HARDENED_MODE: '0', + YARN_ENABLE_IMMUTABLE_INSTALLS: 'false', ...options.env } }) console.log(stdout) if (stderr) { - console.error(stderr) - - throw new Error(stderr) + console.log(stderr) } }