Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

karma.conf.js 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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' ],
  11. // list of files / patterns to load in the browser
  12. files: [
  13. 'node_modules/core-js/index.js',
  14. './index.js',
  15. './modules/**/*.spec.js'
  16. ],
  17. // list of files to exclude
  18. exclude: [
  19. ],
  20. // preprocess matching files before serving them to the browser
  21. // available preprocessors:
  22. // https://npmjs.org/browse/keyword/karma-preprocessor
  23. preprocessors: {
  24. 'node_modules/core-js/**': [ 'webpack' ],
  25. './index.js': [ 'webpack' ],
  26. './**/*.spec.js': [ 'webpack' ]
  27. },
  28. // test results reporter to use
  29. // possible values: 'dots', 'progress'
  30. // available reporters: https://npmjs.org/browse/keyword/karma-reporter
  31. reporters: [ 'progress' ],
  32. // web server port
  33. port: 9876,
  34. // enable / disable colors in the output (reporters and logs)
  35. colors: true,
  36. // level of logging
  37. // possible values: config.LOG_DISABLE || config.LOG_ERROR ||
  38. // config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
  39. logLevel: config.LOG_INFO,
  40. // enable / disable watching file and executing tests whenever
  41. // any file changes
  42. autoWatch: false,
  43. // start these browsers
  44. // available browser launchers:
  45. // https://npmjs.org/browse/keyword/karma-launcher
  46. browsers: [ 'ChromeHeadless' ],
  47. // Continuous Integration mode
  48. // if true, Karma captures browsers, runs the tests and exits
  49. singleRun: true,
  50. webpack: require('./webpack.config.js')
  51. });
  52. };