// Karma for Jasmine testing framework.
// https://github.com/webpack/karma-webpack
var path = require('path');

module.exports = function (config) {
	config.set({
		// base path, that will be used to resolve files and exclude
		'basePath': '../test/units/',

		// frameworks to use
		'frameworks': ['jasmine'],

		// start these browsers, currently available:
		// - Chrome
		// - ChromeCanary
		// - Firefox
		// - Opera (has to be installed with `npm install karma-opera-launcher`)
		// - Safari (only Mac; has to be installed with `npm install karma-safari-launcher`)
		// - PhantomJS
		// - IE (only Windows; has to be installed with `npm install karma-ie-launcher`)
		'browsers': ['Chrome', 'Firefox'],
		// 'browsers': ['Safari'],

		// list of files to load in the browser
		'files': [
			'index.js'
		],

		// enable / disable watching file and executing tests whenever any file changes
		'autoWatch': true,

		// Continuous Integration mode
		// if true, it capture browsers, run tests and exit
		'singleRun': true,

		// list of preprocessors
		'preprocessors': {
			'index.js': ['webpack', 'sourcemap']
		},

		// webpack config
		'webpack': {
			'devtool': 'inline-source-map',
			'resolve': {
				'alias': {
					'src': path.resolve(__dirname, '../src'),
					'mvvm': path.resolve(__dirname, '../src/mvvm/index')
				}
			},
			'module': {
				'loaders': [
					{
						'test': /\.js$/,
						'exclude': [
							path.resolve(__dirname, '../test/units'),
							path.resolve(__dirname, '../node_modules')
						],
						'loader': 'babel', // 'babel-loader' is also a legal name to reference
						'query': {
							'presets': ['es2015']
						}
					}
				]
			}
		},

		// webpack middleware config
		'webpackMiddleware': {
			'noInfo': true
		},

		// test results reporter to use
		// possible values: 'spec', 'dots', 'progress', 'junit', 'growl', 'coverage'
		'reporters': ['spec']
	});
}
// Karma for Jasmine testing framework.
// https://github.com/webpack/karma-webpack
var path = require('path');

module.exports = function (config) {
	config.set({
		// base path, that will be used to resolve files and exclude
		'basePath': '../test/units/',

		// frameworks to use
		'frameworks': ['jasmine'],

		// start these browsers, currently available:
		// - Chrome
		// - ChromeCanary
		// - Firefox
		// - Opera (has to be installed with `npm install karma-opera-launcher`)
		// - Safari (only Mac; has to be installed with `npm install karma-safari-launcher`)
		// - PhantomJS
		// - IE (only Windows; has to be installed with `npm install karma-ie-launcher`)
		'browsers': ['Chrome'],
		// 'browsers': ['Firefox'],
		// 'browsers': ['Safari'],

		// list of files to load in the browser
		'files': [
			'index.js'
		],

		// enable / disable watching file and executing tests whenever any file changes
		'autoWatch': true,

		// Continuous Integration mode
		// if true, it capture browsers, run tests and exit
		'singleRun': true,

		// list of preprocessors
		'preprocessors': {
			'index.js': ['webpack', 'sourcemap']
		},

		// webpack config
		'webpack': {
			'devtool': 'inline-source-map',
			'resolve': {
				'alias': {
					'src': path.resolve(__dirname, '../src'),
					'mvvm': path.resolve(__dirname, '../src/mvvm/index')
				}
			},
			'module': {
				'loaders': [
					{
						'test': /\.js$/,
						'exclude': [
							path.resolve(__dirname, '../test/units'),
							path.resolve(__dirname, '../node_modules')
						],
						'loader': 'babel', // 'babel-loader' is also a legal name to reference
						'query': {
							'presets': ['es2015']
						}
					}
				]
			}
		},

		// webpack middleware config
		'webpackMiddleware': {
			'noInfo': true
		},

		// test results reporter to use
		// possible values: 'spec', 'dots', 'progress', 'junit', 'growl', 'coverage'
		'reporters': ['spec']
	});
}
Update unit test config.