modified lib-jitsi-meet dev repo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

karma.conf.js 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. // Karma configuration
  2. // Generated on Wed Dec 07 2016 14:40:28 GMT-0800 (PST)
  3. module.exports = function(config) {
  4. config.set({
  5. // base path that will be used to resolve all patterns (eg. files,
  6. // exclude)
  7. basePath: '',
  8. // frameworks to use
  9. // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
  10. frameworks: [ 'jasmine', 'webpack' ],
  11. // list of files / patterns to load in the browser
  12. files: [
  13. 'node_modules/core-js/index.js',
  14. 'node_modules/jquery/dist/jquery.slim.min.js',
  15. './modules/**/*.spec.js',
  16. './modules/**/*.spec.ts',
  17. './service/**/*.spec.ts',
  18. './*.spec.ts'
  19. ],
  20. // list of files to exclude
  21. exclude: [
  22. ],
  23. // preprocess matching files before serving them to the browser
  24. // available preprocessors:
  25. // https://npmjs.org/browse/keyword/karma-preprocessor
  26. preprocessors: {
  27. 'node_modules/core-js/**': [ 'webpack' ],
  28. './**/*.spec.js': [ 'webpack', 'sourcemap' ],
  29. './**/*.spec.ts': [ 'webpack', 'sourcemap' ]
  30. },
  31. // test results reporter to use
  32. // possible values: 'dots', 'progress'
  33. // available reporters: https://npmjs.org/browse/keyword/karma-reporter
  34. reporters: [ 'progress' ],
  35. // web server port
  36. port: 9876,
  37. // enable / disable colors in the output (reporters and logs)
  38. colors: true,
  39. // level of logging
  40. // possible values: config.LOG_DISABLE || config.LOG_ERROR ||
  41. // config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
  42. logLevel: config.LOG_INFO,
  43. // enable / disable watching file and executing tests whenever
  44. // any file changes
  45. autoWatch: false,
  46. // start these browsers
  47. // available browser launchers:
  48. // https://npmjs.org/browse/keyword/karma-launcher
  49. browsers: [ 'ChromeHeadless' ],
  50. // Continuous Integration mode
  51. // if true, Karma captures browsers, runs the tests and exits
  52. singleRun: true,
  53. webpack: require('./webpack-shared-config')(false /* minimize */, false /* analyzeBundle */)
  54. });
  55. };