karma.conf.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* karma.conf.js/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro). */
  2. /* This copyright was auto-generated on Wed Sep 8 21:37:26 UTC 2021 */
  3. // Karma configuration file, see link for more information
  4. // https://karma-runner.github.io/1.0/config/configuration-file.html
  5. module.exports = function (config) {
  6. config.set({
  7. basePath: '',
  8. frameworks: ['jasmine', '@angular-devkit/build-angular'],
  9. plugins: [
  10. require('karma-jasmine'),
  11. require('karma-chrome-launcher'),
  12. require('karma-jasmine-html-reporter'),
  13. require('karma-coverage'),
  14. require('@angular-devkit/build-angular/plugins/karma')
  15. ],
  16. client: {
  17. jasmine: {
  18. // you can add configuration options for Jasmine here
  19. // the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
  20. // for example, you can disable the random execution with `random: false`
  21. // or set a specific seed with `seed: 4321`
  22. },
  23. clearContext: false // leave Jasmine Spec Runner output visible in browser
  24. },
  25. jasmineHtmlReporter: {
  26. suppressAll: true // removes the duplicated traces
  27. },
  28. coverageReporter: {
  29. dir: require('path').join(__dirname, './coverage/ngv'),
  30. subdir: '.',
  31. reporters: [
  32. { type: 'html' },
  33. { type: 'text-summary' }
  34. ]
  35. },
  36. reporters: ['progress', 'kjhtml'],
  37. port: 9876,
  38. colors: true,
  39. logLevel: config.LOG_INFO,
  40. autoWatch: true,
  41. browsers: ['Chrome'],
  42. singleRun: false,
  43. restartOnFileChange: true
  44. });
  45. };