Correct settings for single run in browserstack
const base = require('./karma.base.conf');

module.exports = function(config) {
	config.set(Object.assign(base, {
		browserStack: {
			username: process.env.BROWSERSTACK_USERNAME,
			accessKey: process.env.BROWSERSTACK_ACCESS_KEY
		},

		customLaunchers: {
			bs_safari_mac: {
				base: 'BrowserStack',
				browser: 'safari',
				os: 'OS X',
				os_version: 'Sierra'
			},
			bs_firefox_mac: {
				base: 'BrowserStack',
				browser: 'firefox',
				os: 'OS X',
				os_version: 'Sierra'
			},
			bs_chrome_mac: {
				base: 'BrowserStack',
				browser: 'chrome',
				os: 'OS X',
				os_version: 'Sierra'
			}
		},

		browsers: ['bs_safari_mac', 'bs_firefox_mac', 'bs_chrome_mac'],
		autoWatch: false,
		singleRun: true,
		reporters: ['dots', 'BrowserStack']
	}));
};

const base = require('./karma.base.conf');

module.exports = function(config) {
	config.set(Object.assign(base, {
		browserStack: {
			username: process.env.BROWSERSTACK_USERNAME,
			accessKey: process.env.BROWSERSTACK_ACCESS_KEY
		},

		customLaunchers: {
			bs_safari_mac: {
				base: 'BrowserStack',
				browser: 'safari',
				os: 'OS X',
				os_version: 'Sierra'
			},
			bs_firefox_mac: {
				base: 'BrowserStack',
				browser: 'firefox',
				os: 'OS X',
				os_version: 'Sierra'
			},
			bs_chrome_mac: {
				base: 'BrowserStack',
				browser: 'chrome',
				os: 'OS X',
				os_version: 'Sierra'
			}
		},

		browsers: ['bs_safari_mac', 'bs_firefox_mac', 'bs_chrome_mac'],
		autoWatch: true,
		singleRun: false,
		reporters: ['dots', 'BrowserStack']
	}));
};
