Skip to content

Commit

Permalink
refactor(e2e): Misc changes to runNxCommandAsync
Browse files Browse the repository at this point in the history
  • Loading branch information
TriPSs committed Dec 24, 2023
1 parent 0a397c7 commit 0b0f342
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions e2e/utils/run-nx-command-async.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { runNxCommandAsync as _runNxCommandAsync } from '@nx/plugin/testing'

export async function runNxCommandAsync(command: string, options: { env?: object } = {}): Promise<void> {
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)
}
}

0 comments on commit 0b0f342

Please sign in to comment.