2016-05-20 16:22:57 -04:00
|
|
|
// Karma configuration
|
|
|
|
module.exports = function(config) {
|
|
|
|
config.set({
|
|
|
|
|
|
|
|
basePath: '',
|
|
|
|
|
|
|
|
frameworks: ['jasmine'],
|
|
|
|
|
|
|
|
files: [
|
|
|
|
// Polyfills.
|
|
|
|
'node_modules/es6-shim/es6-shim.js',
|
|
|
|
|
|
|
|
'node_modules/reflect-metadata/Reflect.js',
|
|
|
|
|
|
|
|
// System.js for module loading
|
|
|
|
'node_modules/systemjs/dist/system-polyfills.js',
|
|
|
|
'node_modules/systemjs/dist/system.src.js',
|
|
|
|
|
|
|
|
// Zone.js dependencies
|
|
|
|
'node_modules/zone.js/dist/zone.js',
|
2016-05-24 16:23:05 -04:00
|
|
|
'node_modules/zone.js/dist/long-stack-trace-zone.js',
|
2016-05-20 16:22:57 -04:00
|
|
|
'node_modules/zone.js/dist/jasmine-patch.js',
|
|
|
|
'node_modules/zone.js/dist/async-test.js',
|
2016-05-24 16:23:05 -04:00
|
|
|
'node_modules/zone.js/dist/fake-async-test.js',
|
2016-05-20 16:22:57 -04:00
|
|
|
|
|
|
|
// RxJs.
|
|
|
|
{ pattern: 'node_modules/rxjs/**/*.js', included: false, watched: false },
|
|
|
|
{ pattern: 'node_modules/rxjs/**/*.js.map', included: false, watched: false },
|
|
|
|
|
|
|
|
|
|
|
|
{pattern: 'karma-test-shim.js', included: true, watched: true},
|
|
|
|
{pattern: 'built/test/matchers.js', included: true, watched: true},
|
|
|
|
|
|
|
|
// paths loaded via module imports
|
|
|
|
// Angular itself
|
|
|
|
{pattern: 'node_modules/@angular/**/*.js', included: false, watched: true},
|
|
|
|
{pattern: 'node_modules/@angular/**/*.js.map', included: false, watched: true},
|
|
|
|
|
|
|
|
{pattern: 'dist/**/*.js', included: false, watched: true},
|
|
|
|
{pattern: 'dist/**/*.js.map', included: false, watched: false}
|
|
|
|
],
|
|
|
|
|
2016-05-23 19:28:11 -04:00
|
|
|
preprocessors: {
|
|
|
|
'**/*.js': ['sourcemap']
|
|
|
|
},
|
|
|
|
|
2016-05-20 16:22:57 -04:00
|
|
|
reporters: ['mocha'],
|
|
|
|
port: 9876,
|
|
|
|
colors: true,
|
|
|
|
logLevel: config.LOG_INFO,
|
|
|
|
autoWatch: true,
|
|
|
|
browsers: ['Chrome'],
|
|
|
|
singleRun: false
|
|
|
|
})
|
|
|
|
};
|