No Description

karma.conf.js 806B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. module.exports = function (config) {
  2. config.set({
  3. files: [
  4. 'examples/client/vendor/angular.js',
  5. 'examples/client/vendor/angular-mocks.js',
  6. 'node_modules/babel-polyfill/dist/polyfill.js',
  7. 'test/*.spec.ts'
  8. ],
  9. browsers: ['PhantomJS'],
  10. frameworks: ['jasmine'],
  11. plugins: [
  12. 'karma-phantomjs-launcher',
  13. 'karma-jasmine',
  14. 'karma-coverage',
  15. 'karma-webpack'
  16. ],
  17. singleRun: true,
  18. autoWatch: false,
  19. reporters: ['dots'],
  20. preprocessors: {
  21. 'test/*.spec.ts': ['webpack']
  22. },
  23. webpack: {
  24. resolve: {
  25. extensions: ['', '.ts', '.js']
  26. },
  27. module: {
  28. loaders: [
  29. { test: /\.ts$/, loader: 'ts' }
  30. ]
  31. }
  32. },
  33. webpackMiddleware: {
  34. noInfo: true
  35. }
  36. });
  37. };