karma.conf.js 851 B

123456789101112131415161718192021222324252627282930
  1. module.exports = function(config) {
  2. config.set({
  3. basePath: '',
  4. frameworks: ['mocha', 'chai'],
  5. files: [
  6. 'jquery.datetimepicker.css',
  7. 'node_modules/php-date-formatter/js/php-date-formatter.js',
  8. 'jquery.js',
  9. 'jquery.datetimepicker.js',
  10. 'tests/bootstrap.js',
  11. 'tests/tests/*.js'
  12. ],
  13. reporters: ['progress'],
  14. port: 9876,
  15. colors: true,
  16. logLevel: config.LOG_INFO,
  17. browsers: ['Firefox'],
  18. autoWatch: true,
  19. singleRun: false, // Karma captures browsers, runs the tests and exits
  20. concurrency: Infinity,
  21. plugins: [
  22. 'karma-firefox-launcher',
  23. 'karma-mocha',
  24. 'karma-chai'
  25. ],
  26. client: {
  27. captureConsole: true
  28. }
  29. })
  30. };