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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. 'https://code.jquery.com/jquery-3.5.1.min.js',
  14. 'node_modules/core-js/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. './**/*.spec.js': [ 'webpack', 'sourcemap' ]
  26. },
  27. // test results reporter to use
  28. // possible values: 'dots', 'progress'
  29. // available reporters: https://npmjs.org/browse/keyword/karma-reporter
  30. reporters: [ 'progress' ],
  31. // web server port
  32. port: 9876,
  33. // enable / disable colors in the output (reporters and logs)
  34. colors: true,
  35. // level of logging
  36. // possible values: config.LOG_DISABLE || config.LOG_ERROR ||
  37. // config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
  38. logLevel: config.LOG_INFO,
  39. // enable / disable watching file and executing tests whenever
  40. // any file changes
  41. autoWatch: false,
  42. // start these browsers
  43. // available browser launchers:
  44. // https://npmjs.org/browse/keyword/karma-launcher
  45. browsers: [ 'ChromeHeadless' ],
  46. // Continuous Integration mode
  47. // if true, Karma captures browsers, runs the tests and exits
  48. singleRun: true,
  49. webpack: require('./webpack-shared-config')(false /* minimize */, false /* analyzeBundle */)
  50. });
  51. };