|
| 1 | +// Karma configuration file, see link for more information |
| 2 | +// https://karma-runner.github.io/1.0/config/configuration-file.html |
| 3 | + |
| 4 | +module.exports = function (config) { |
| 5 | + config.set({ |
| 6 | + basePath: '', |
| 7 | + frameworks: ['jasmine', '@angular-devkit/build-angular'], |
| 8 | + files: [ |
| 9 | + { pattern: '../../node_modules/hammerjs/hammer.min.js', watched: false }, |
| 10 | + { pattern: '../../node_modules/hammer-simulator/index.js', watched: false }, |
| 11 | + { pattern: './test.css', watched: false }, |
| 12 | + { pattern: '../../dist/igniteui-angular/styles/igniteui-angular.css', watched: false } |
| 13 | + ], |
| 14 | + plugins: [ |
| 15 | + require('karma-jasmine'), |
| 16 | + require('karma-chrome-launcher'), |
| 17 | + require('karma-jasmine-spec-tags'), |
| 18 | + require('karma-junit-reporter'), |
| 19 | + require('karma-coverage-istanbul-reporter'), |
| 20 | + require('karma-spec-reporter'), |
| 21 | + require('@angular-devkit/build-angular/plugins/karma') |
| 22 | + ], |
| 23 | + client: { |
| 24 | + clearContext: false, // leave Jasmine Spec Runner output visible in browser |
| 25 | + jasmine: { |
| 26 | + random: false |
| 27 | + }, |
| 28 | + tagPrefix: '#', |
| 29 | + skipTags: 'hGrid,tGrid,grid' |
| 30 | + }, |
| 31 | + coverageIstanbulReporter: { |
| 32 | + dir: require('path').join(__dirname, '../../coverage/non-grid'), |
| 33 | + reports: ['lcovonly', 'json', 'cobertura'], |
| 34 | + fixWebpackSourcePaths: true |
| 35 | + }, |
| 36 | + reporters: ['junit'], |
| 37 | + junitReporter: { |
| 38 | + outputDir: '' |
| 39 | + }, |
| 40 | + port: 9876, |
| 41 | + colors: true, |
| 42 | + logLevel: config.LOG_INFO, |
| 43 | + autoWatch: true, |
| 44 | + browsers: ['ChromeHeadless'], |
| 45 | + singleRun: true |
| 46 | + }); |
| 47 | +}; |
0 commit comments