Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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