karma.conf.js 527 B

123456789101112131415161718192021222324
  1. module.exports = function (config) {
  2. config.set({
  3. basePath: '.',
  4. frameworks: ['mocha'],
  5. reporters: ['mocha'],
  6. client: {
  7. mocha: {
  8. timeout : 10000 // 10 seconds - upped from 2 seconds
  9. }
  10. },
  11. files: [
  12. '../node_modules/es6-promise/dist/es6-promise.js',
  13. './build/injector.js',
  14. './build/bundle.js'
  15. ],
  16. preprocessors: {
  17. 'test/build/bundle.js': ['sourcemap']
  18. },
  19. port: 9876,
  20. colors: true,
  21. singleRun: true,
  22. logLevel: config.LOG_INFO
  23. });
  24. };