src/config/__mocks__/util.js
function getCosmiConfig() {
  try {
    const config = require(configPath);

    if (typeof config === 'object' && typeof config.iopipe === 'object') {
      return config.iopipe;
    }
  } catch (err) {
    Function.prototype; // noop
  }

  return {};
}
function getCosmiConfig() {
  try {
    const config = require(configPath);

    if (typeof config === 'object' && typeof config.iopipe === 'object') {
      return config.iopipe;
    }
  } catch (err) {
    Function.prototype; // noop
  }

  return {};
}
/*eslint-disable import/no-dynamic-require