async function writeAllInputs(wizardProcess, inputs) {
  const ENTER_KEY = '\x0D';

  for (const input of inputs) {
    wizardProcess.stdin.write(input);
    wizardProcess.stdin.write(ENTER_KEY);
    // Wait for inquirer to write back our response, that's the signal we can continue.
    await waitForCondition(() => wizardProcess.stdoutMemory.includes(input));
    // Sometimes it still isn't ready though, give it a bit more time to process.
    await new Promise(r => setTimeout(r, process.env.CI ? 500 : 50));
  }

  wizardProcess.stdin.end();
}
@param {import('child_process').ChildProcess & {stdoutMemory: string}} wizardProcess @param {string[]} inputs