Advertisement
Guest User

Untitled

a guest
Apr 29th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. module.exports = function (config) {
  2. config.set({
  3. browsers: ['PhantomJS'],
  4. frameworks: ['jasmine'],
  5. files: ['test/**/*.js'],
  6. reporters: ['spec'],
  7. preprocessors: {
  8. 'test/*.js': ['webpack']
  9. },
  10. singleRun: true,
  11.  
  12. webpack: {
  13. // karma watches the test entry points
  14. // (you don't need to specify the entry option)
  15. module: {
  16. loaders: [
  17. {
  18. test: /\.js$/,
  19. loader: 'babel',
  20. exclude: /node_modules/
  21. },
  22. {
  23. test: /\.vue$/,
  24. loader: 'vue'
  25. }
  26. ]
  27. }
  28. },
  29.  
  30. webpackMiddleware: {
  31. noInfo: true
  32. }
  33. });
  34. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement