Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. // Karma shared configuration
  2. const os = require('os')
  3. const cpuCount = os.cpus().length
  4. module.exports = function (config) {
  5. return {
  6. // base path that will be used to resolve all patterns (eg. files, 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. '.config/pretest.js',
  14. 'spec/RAFPlugin.js',
  15. {
  16. pattern: 'spec/fixtures/fixture.css',
  17. included: false,
  18. served: true
  19. },
  20. {
  21. pattern: 'spec/fixtures/fixture.svg',
  22. included: false,
  23. served: true
  24. },
  25. {
  26. pattern: 'spec/fixtures/pixel.png',
  27. included: false,
  28. served: true
  29. },
  30. 'dist/svg.js',
  31. 'spec/spec/*.js'
  32. ],
  33. proxies: {
  34. '/fixtures/': '/base/spec/fixtures/',
  35. '/spec/': '/base/spec/'
  36. },
  37. // web server port
  38. port: 9876,
  39. // enable / disable colors in the output (reporters and logs)
  40. colors: true,
  41. // level of logging
  42. // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
  43. logLevel: config.LOG_INFO,
  44. // enable / disable watching file and executing tests whenever any file changes
  45. autoWatch: false,
  46. // Continuous Integration mode
  47. // if true, Karma captures browsers, runs the tests and exits
  48. singleRun: true,
  49. // Concurrency level
  50. // how many browser should be started simultaneous
  51. concurrency: cpuCount || Infinity,
  52. // list of files to exclude
  53. exclude: []
  54. }
  55. }