cba2914379b6c53fd060fdb09c0576a69244627021092f20e654a8a83e4aa0e71455f6c9e30f7c7e557300c39c92888c6b9ca377529b14e4d847bbac44ad79 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // Karma configuration
  2. // Generated on Sat Jan 30 2021 21:44:35 GMT+0900 (GMT+09:00)
  3. module.exports = function (config) {
  4. config.set({
  5. // base path that will be used to resolve all patterns (eg. files, exclude)
  6. basePath: '',
  7. // frameworks to use
  8. // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
  9. frameworks: ['mocha', 'browserify'],
  10. // list of files / patterns to load in the browser
  11. files: [
  12. 'test/*.js'
  13. ],
  14. // list of files / patterns to exclude
  15. exclude: [
  16. ],
  17. // preprocess matching files before serving them to the browser
  18. // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
  19. preprocessors: {
  20. 'test/*.js': ['browserify']
  21. },
  22. browserify: {
  23. debug: true,
  24. transform: []
  25. },
  26. // test results reporter to use
  27. // possible values: 'dots', 'progress'
  28. // available reporters: https://npmjs.org/browse/keyword/karma-reporter
  29. reporters: ['progress'],
  30. // web server port
  31. port: 9876,
  32. // enable / disable colors in the output (reporters and logs)
  33. colors: true,
  34. // level of logging
  35. // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
  36. logLevel: config.LOG_INFO,
  37. // enable / disable watching file and executing tests whenever any file changes
  38. autoWatch: true,
  39. // start these browsers
  40. // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
  41. browsers: ['ChromeHeadless'],
  42. // Continuous Integration mode
  43. // if true, Karma captures browsers, runs the tests and exits
  44. singleRun: true,
  45. // Concurrency level
  46. // how many browser should be started simultaneous
  47. concurrency: Infinity
  48. })
  49. }