const base = require('skatejs-build/karma.conf');
module.exports = function (config) {
  base(config);

  // Remove all explicit IE definitions.
  config.browsers = config.browsers.filter(name => !/^internet_explorer/.test(name));

  // Only test IE latest.
  config.browsers.push('internet_explorer_11');

  // Shims for testing.
  config.files = [
    'node_modules/es6-shim/es6-shim.js'
  ].concat(config.files);

  // Ensure mobile browsers have enough time to run.
  config.browserNoActivityTimeout = 60000;
};

const base = require('skatejs-build/karma.conf');
module.exports = function (config) {
  base(config);

  // Setup IE if testing in SauceLabs.
  if (config.sauceLabs) {
    // Remove all explicit IE definitions.
    config.browsers = config.browsers.filter(name => !/^internet_explorer/.test(name));

    // Only test IE latest.
    config.browsers.push('internet_explorer_11');
  }

  // Shims for testing.
  config.files = [
    'node_modules/es6-shim/es6-shim.js',
  ].concat(config.files);

  // Ensure mobile browsers have enough time to run.
  config.browserNoActivityTimeout = 60000;
};

Fix tests so that it only tries to run IE11 if running in Sauce Labs.
chore(test): Fix tests so that it only tries to run IE11 if running in Sauce Labs.

For some reason it just started happening that it would try to run IE11 outside of Sauce Labs.
