karma.conf.js 808 B

123456789101112131415161718192021222324252627282930313233343536
  1. module.exports = function(config) {
  2. 'use strict';
  3. config.set({
  4. basePath: __dirname + '/public_gen',
  5. frameworks: ['mocha', 'expect', 'sinon'],
  6. // list of files / patterns to load in the browser
  7. files: [
  8. 'vendor/npm/es5-shim/es5-shim.js',
  9. 'vendor/npm/es5-shim/es5-sham.js',
  10. 'vendor/npm/es6-shim/es6-shim.js',
  11. 'vendor/npm/es6-promise/dist/es6-promise.js',
  12. 'vendor/npm/systemjs/dist/system.src.js',
  13. 'test/test-main.js',
  14. {pattern: '**/*.js', included: false},
  15. ],
  16. // list of files to exclude
  17. exclude: [],
  18. reporters: ['dots'],
  19. port: 9876,
  20. colors: true,
  21. logLevel: config.LOG_INFO,
  22. autoWatch: true,
  23. browsers: ['PhantomJS'],
  24. captureTimeout: 2000,
  25. singleRun: true,
  26. autoWatchBatchDelay: 1000,
  27. });
  28. };