{"size": 554, "ext": "js", "max_stars_repo_path": "features/support/world.js", "max_stars_repo_name": "benjamine/todomvc-spec", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "features/support/world.js", "max_issues_repo_name": "benjamine/todomvc-spec", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "features/support/world.js", "max_forks_repo_name": "benjamine/todomvc-spec", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.1818181818, "max_line_length": 57, "alphanum_fraction": 0.7400722022}
import {defineSupportCode} from 'cucumber';
import _ from 'lodash';
import configuration from '../../plugins/configuration';
import pluginManager from '../../plugins/plugin-manager';

const config = configuration.load();

function CustomWorld() {
  this.config = _.cloneDeep(config);
  pluginManager.extendWorld(this);
}

defineSupportCode(function(context) {
  const {
    setWorldConstructor,
    setDefaultTimeout
  } = context;
  pluginManager.initialize(config, context);
  setDefaultTimeout(10 * 60 * 1000);
  setWorldConstructor(CustomWorld);
});
