function getCleanEnvironment(extraEnvVars) {
  const cleanEnv = {
    ...process.env,
    CHROME_PATH: undefined,
    LHCI_GITHUB_TOKEN: undefined,
    LHCI_GITHUB_APP_TOKEN: undefined,
    LHCI_CANARY_SERVER_URL: undefined,
    LHCI_CANARY_SERVER_TOKEN: undefined,
    NO_UPDATE_NOTIFIER: '1',
    LHCI_NO_LIGHTHOUSERC: '1',
  };

  return {...cleanEnv, ...extraEnvVars};
}
@param {Record<string, string>|undefined} extraEnvVars