karma.conf.js 499 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. 'use strict';
  2. module.exports = function (config) {
  3. config.set({
  4. browsers: ['PhantomJS'],
  5. frameworks: ['browserify', 'mocha'],
  6. files: [
  7. 'test/**/*.spec.js'
  8. ],
  9. preprocessors: {
  10. 'test/**/*.spec.js': ['browserify']
  11. },
  12. reporters: ['mocha'],
  13. client: {
  14. mocha: {
  15. reporter: 'tap'
  16. }
  17. },
  18. plugins: [
  19. 'karma-browserify',
  20. 'karma-mocha',
  21. 'karma-mocha-reporter',
  22. 'karma-phantomjs-launcher'
  23. ]
  24. });
  25. };