karma.conf.js 926 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. var webpack = require('webpack');
  2. var path = require('path');
  3. var webpackTestConfig = require('./scripts/webpack/webpack.test.js');
  4. module.exports = function(config) {
  5. 'use strict';
  6. config.set({
  7. frameworks: ['mocha', 'expect', 'sinon'],
  8. // list of files / patterns to load in the browser
  9. files: [
  10. { pattern: 'public/test/index.ts', watched: false }
  11. ],
  12. preprocessors: {
  13. 'public/test/index.ts': ['webpack', 'sourcemap'],
  14. },
  15. webpack: webpackTestConfig,
  16. webpackServer: {
  17. noInfo: true, // please don't spam the console when running in karma!
  18. },
  19. // list of files to exclude
  20. exclude: [],
  21. reporters: ['dots'],
  22. port: 9876,
  23. colors: true,
  24. logLevel: config.LOG_INFO,
  25. autoWatch: true,
  26. browsers: ['PhantomJS'],
  27. captureTimeout: 20000,
  28. singleRun: true,
  29. // autoWatchBatchDelay: 1000,
  30. // browserNoActivityTimeout: 60000,
  31. });
  32. };