I am learning how to configure Karma using Angular 2 and run into problems.
I followed what Julia did in her seed project and applied it to my project.
Everything works fine in Chrome, but when I want to use PhantomJS, I get an error. This also happens in PhantomJS2 ...
This is mistake:
[karma]: Karma v0.13.22 server started at http://localhost:9877/ [launcher]: Starting browser PhantomJS2 [PhantomJS 2.0.0 (Mac OS X 0.0.0)]: Connected on socket /
karma.config.js
module.exports = function (config) { config.set({ basePath : '', frameworks : ['jasmine'], files : [ // paths loaded by Karma {pattern : 'node_modules/systemjs/dist/system-polyfills.js', included : true, watched : true}, {pattern : 'node_modules/systemjs/dist/system.src.js', included : true, watched : true}, {pattern : 'node_modules/es6-shim/es6-shim.js', included : true, watched : true}, {pattern : 'node_modules/angular2/bundles/angular2-polyfills.js', included : true, watched : true}, {pattern : 'node_modules/rxjs/bundles/Rx.js', included : true, watched : true}, {pattern : 'node_modules/angular2/bundles/angular2.js', included : true, watched : true}, {pattern : 'node_modules/angular2/bundles/testing.dev.js', included : true, watched : true}, {pattern : 'karma-test-shim.js', included : true, watched : true}, {pattern : 'app/**/*.js', included : false, watched : true}, {pattern : 'app/**/*.html', included : false, watched : true}, {pattern : 'app/**/*.css', included : false, watched : true}, {pattern : 'test/**/*.ts', included : false, watched : false}, {pattern : 'test/**/*.js', included : false, watched : true}, {pattern : 'test/**/*.js.map', included : false, watched : false} ], proxies : { "/app/" : "/base/src/app/" }, reporters : ['progress'], port : 9876, colors : true, logLevel : config.LOG_INFO, autoWatch : false, browsers : ['PhantomJS2'], singleRun : true })}
Does anyone know what I'm doing wrong? thanks in advance