nested-double.js
This file
Path
test/fixtures/nested-double.js
10 lines · 393 bytes · JavaScript
Last changed by
Refactor test helpers for the `verbose` option (#1128)ehmickybefore adoption18d320f
History of this fileTake it
1234567891011#!/usr/bin/env nodeimport {execa, getOneMessage} from '../../index.js';
const {file, commandArguments, options} = await getOneMessage();const firstArguments = commandArguments.slice(0, -1);const lastArgument = commandArguments.at(-1);await Promise.all([ execa(file, [...firstArguments, lastArgument], options), execa(file, [...firstArguments, lastArgument.toUpperCase()], options),]);