async function cleanupFixtures(fixturesToCleanup, {cleanup, dryRun, verbose}) {
  if (!cleanup || fixturesToCleanup.size === 0) {
    return;
  }

  console.log(
    chalk.yellow(`Cleaning up ${fixturesToCleanup.size} fixtures...`),
  );

  for (let fixture of fixturesToCleanup) {
    if (dryRun) {
      console.log(chalk.green(`Would remove ${printPath(fixture)}`));
      continue;
    }

    if (verbose) {
      console.log(chalk.red(`Removing ${printPath(fixture)}`));
    }

    try {
      await fs.rm(fixture, {recursive: true});
    } catch (err) {
      console.error(err);
    }
  }
}
Cleans up old fixtures that were replaced by the transform.