2
0

karma.base.config.js 505 B

1234567891011121314151617181920212223242526
  1. // shared config for all unit tests
  2. module.exports = {
  3. frameworks: ['jasmine'],
  4. files: [
  5. '../test/unit/lib/jquery.js',
  6. '../test/unit/specs/index.js'
  7. ],
  8. preprocessors: {
  9. '../test/unit/specs/index.js': ['webpack']
  10. },
  11. webpack: {
  12. module: {
  13. loaders: [
  14. {
  15. test: /\.js$/,
  16. exclude: /test|node_modules/,
  17. loader: 'babel?optional[]=runtime&loose=all'
  18. }
  19. ]
  20. }
  21. },
  22. webpackMiddleware: {
  23. noInfo: true
  24. },
  25. singleRun: true
  26. }