karma.conf.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // Karma configuration file, see link for more information
  2. // https://karma-runner.github.io/1.0/config/configuration-file.html
  3. module.exports = function (config) {
  4. config.set({
  5. basePath: '',
  6. frameworks: ['jasmine', '@angular-devkit/build-angular'],
  7. plugins: [
  8. require('karma-jasmine'),
  9. require('karma-chrome-launcher'),
  10. require('karma-jasmine-html-reporter'),
  11. require('karma-coverage'),
  12. require('@angular-devkit/build-angular/plugins/karma')
  13. ],
  14. client: {
  15. clearContext: false // leave Jasmine Spec Runner output visible in browser
  16. },
  17. jasmineHtmlReporter: {
  18. suppressAll: true // removes the duplicated traces
  19. },
  20. coverageReporter: {
  21. dir: require('path').join(__dirname, './coverage/frontend-client'),
  22. subdir: '.',
  23. reporters: [
  24. { type: 'html' },
  25. { type: 'text-summary' }
  26. ]
  27. },
  28. reporters: ['progress', 'kjhtml'],
  29. port: 9876,
  30. colors: true,
  31. logLevel: config.LOG_INFO,
  32. autoWatch: true,
  33. browsers: ['Chrome'],
  34. singleRun: false,
  35. restartOnFileChange: true
  36. });
  37. };