Skip to content

Commit

Permalink
Clean up my "hard to read" code (#22295)
Browse files Browse the repository at this point in the history
  • Loading branch information
rickhanlonii authored Sep 11, 2021
1 parent d2f08dd commit e73911e
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions scripts/jest/jest-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,17 +309,11 @@ function main() {
validateOptions();
const args = getCommandArgs();
const envars = getEnvars();
const env = Object.entries(envars).map(([k, v]) => `${k}=${v}`);

// Print the full command we're actually running.
console.log(
chalk.dim(
`$ ${Object.keys(envars)
.map(envar => `${envar}=${envars[envar]}`)
.join(' ')}`,
'node',
args.join(' ')
)
);
const command = `$ ${env.join(' ')} node ${args.join(' ')}`;
console.log(chalk.dim(command));

// Print the release channel and project we're running for quick confirmation.
console.log(
Expand Down

0 comments on commit e73911e

Please sign in to comment.