|
| 1 | +// Karma configuration file, see link for more information |
| 2 | +// https://karma-runner.github.io/0.13/config/configuration-file.html |
| 3 | + |
| 4 | +module.exports = function (config) { |
| 5 | + config.set({ |
| 6 | + basePath: '..', |
| 7 | + frameworks: ['jasmine'], |
| 8 | + plugins: [ |
| 9 | + require('karma-jasmine'), |
| 10 | + require('karma-chrome-launcher') |
| 11 | + ], |
| 12 | + customLaunchers: { |
| 13 | + // chrome setup for travis CI using chromium |
| 14 | + Chrome_travis_ci: { |
| 15 | + base: 'Chrome', |
| 16 | + flags: ['--no-sandbox'] |
| 17 | + } |
| 18 | + }, |
| 19 | + files: [ |
| 20 | + { pattern: 'dist/vendor/es6-shim/es6-shim.js', included: true, watched: false }, |
| 21 | + { pattern: 'dist/vendor/zone.js/dist/zone.js', included: true, watched: false }, |
| 22 | + { pattern: 'dist/vendor/reflect-metadata/Reflect.js', included: true, watched: false }, |
| 23 | + { pattern: 'dist/vendor/systemjs/dist/system-polyfills.js', included: true, watched: false }, |
| 24 | + { pattern: 'dist/vendor/systemjs/dist/system.src.js', included: true, watched: false }, |
| 25 | + { pattern: 'dist/vendor/zone.js/dist/async-test.js', included: true, watched: false }, |
| 26 | + { pattern: 'dist/vendor/zone.js/dist/fake-async-test.js', included: true, watched: false }, |
| 27 | + |
| 28 | + { pattern: 'config/karma-test-shim.js', included: true, watched: true }, |
| 29 | + |
| 30 | + // Distribution folder. |
| 31 | + { pattern: 'dist/**/*', included: false, watched: true } |
| 32 | + ], |
| 33 | + exclude: [ |
| 34 | + // Vendor packages might include spec files. We don't want to use those. |
| 35 | + 'dist/vendor/**/*.spec.js' |
| 36 | + ], |
| 37 | + preprocessors: {}, |
| 38 | + reporters: ['progress'], |
| 39 | + port: 9876, |
| 40 | + colors: true, |
| 41 | + logLevel: config.LOG_INFO, |
| 42 | + autoWatch: true, |
| 43 | + browsers: ['Chrome'], |
| 44 | + singleRun: false |
| 45 | + }); |
| 46 | +}; |
0 commit comments