11process . env . TEST = true ;
2- process . env . NODE_ENV = ' test' ;
2+ process . env . NODE_ENV = " test" ;
33
4- const webpack = require ( "webpack" ) ;
5- const path = require ( "path" ) ;
6- const webpackConfig = require ( './webpack.config.js' ) ( { production : false , karma : true } ) ;
4+ const webpackConfig = require ( "./webpack.config.js" ) ( { production : false , karma : true } ) ;
75
86delete webpackConfig . entry ;
97
10- module . exports = ( config ) => {
8+ module . exports = config => {
119
1210 var configuration = {
1311 basePath : "" ,
@@ -18,6 +16,8 @@ module.exports = (config) => {
1816 "es6-shim"
1917 ] ,
2018 files : [
19+ { pattern : "node_modules/reflect-metadata/Reflect.js" , include : true } ,
20+ { pattern : "node_modules/bluebird/js/browser/bluebird.js" , include : true } ,
2121 { pattern : "node_modules/phaser-ce/build/phaser.js" , include : true } ,
2222 { pattern : "./test/**/**/**.test.ts" , include : true } ,
2323 { pattern : '**/*.map' , served : true , included : false , watched : true }
@@ -34,12 +34,12 @@ module.exports = (config) => {
3434 "karma-webpack" ,
3535 "karma-sourcemap-writer" ,
3636 "karma-sourcemap-loader" ,
37+ "karma-remap-istanbul" ,
3738 "karma-mocha-reporter" ,
3839 "karma-mocha" ,
3940 "karma-chai" ,
4041 "karma-sinon" ,
4142 "karma-es6-shim" ,
42- "karma-remap-istanbul" ,
4343 "karma-coverage-istanbul-reporter"
4444 ] ,
4545 reporters : (
@@ -66,10 +66,10 @@ module.exports = (config) => {
6666 } ;
6767
6868 if ( process . env . TRAVIS ) {
69- configuration . browsers = [ ' PhantomJS' ] ;
69+ configuration . browsers . push ( " PhantomJS" ) ;
7070 configuration . plugins . push ( "karma-phantomjs-launcher" ) ;
7171 } else {
72- configuration . browsers = [ ' PhantomJS' ] ;
72+ configuration . browsers . push ( " PhantomJS" ) ;
7373 configuration . plugins . push ( "karma-phantomjs-launcher" ) ;
7474 }
7575
0 commit comments