|
| 1 | +module.exports = function(config) { |
| 2 | + config.set({ |
| 3 | + basePath: '', |
| 4 | + frameworks: ['jasmine'], |
| 5 | + files: [ |
| 6 | + {pattern: 'node_modules/systemjs/dist/system.src.js', included: true, watched: true}, |
| 7 | + {pattern: 'node_modules/angular2/bundles/angular2.js', included: true, watched: true}, |
| 8 | + {pattern: 'node_modules/angular2/bundles/testing.js', included: true, watched: true}, |
| 9 | + |
| 10 | + {pattern: 'karma-test-shim.js', included: true, watched: true}, |
| 11 | + |
| 12 | + // paths loaded via module imports |
| 13 | + {pattern: 'dist/**/*.js', included: false, watched: true}, |
| 14 | + |
| 15 | + // paths loaded via Angular's component compiler |
| 16 | + // (these paths need to be rewritten, see proxies section) |
| 17 | + {pattern: 'dist/**/*.html', included: false, watched: true}, |
| 18 | + {pattern: 'dist/**/*.css', included: false, watched: true}, |
| 19 | + |
| 20 | + // paths to support debugging with source maps in dev tools |
| 21 | + {pattern: 'dist/**/*.ts', included: false, watched: false}, |
| 22 | + {pattern: 'dist/**/*.js.map', included: false, watched: false} |
| 23 | + ], |
| 24 | + proxies: { |
| 25 | + // required for component assests fetched by Angular's compiler |
| 26 | + "/app/": "/base/dist/app/" |
| 27 | + }, |
| 28 | + exclude: [], |
| 29 | + preprocessors: {}, |
| 30 | + reporters: ['progress'], |
| 31 | + port: 9876, |
| 32 | + colors: true, |
| 33 | + logLevel: config.LOG_INFO, |
| 34 | + autoWatch: true, |
| 35 | + browsers: ['Chrome'], |
| 36 | + singleRun: false |
| 37 | + }); |
| 38 | +}; |
0 commit comments