'use strict';

module.exports = function (config) {
  config.set({
    basePath: '../',
    frameworks: ['browserify', 'mocha'],
    plugins: [
      'karma-browserify',
      'karma-phantomjs-launcher',
      'karma-mocha',
      'karma-mocha-reporter'
    ],
    browsers: ['PhantomJS'],
    port: 7357,
    reporters: ['mocha'],
    preprocessors: {
      '**/*.js': ['browserify']
    },
    browserify: {
      extensions: ['.js', '.json'],
      transform: require('../../package.json').browserify.transform,
      ignore: [],
      watch: true,
      debug: true,
      noParse: []
    },
    files: [
      '**/*.js'
    ],
    exclude: ['**/*.swp']
  });
};

'use strict';

module.exports = function (config) {
  config.set({
    basePath: '../',
    frameworks: ['browserify', 'mocha'],
    plugins: [
      'karma-browserify',
      'karma-phantomjs-launcher',
      'karma-mocha',
      'karma-mocha-reporter'
    ],
    browsers: ['PhantomJS'],
    port: 7357,
    reporters: ['mocha'],
    preprocessors: {
      '**/*.js': ['browserify']
    },
    browserify: {
      extensions: ['.js', '.json'],
      transform: require('../../package.json').browserify.transform,
      ignore: [],
      watch: true,
      debug: true,
      noParse: []
    },
    files: [
      '**/*.js'
    ],
    exclude: [
      '**/*.swp',
      '**/publishing/*.js'
    ]
  });
};

Exclude publishing tests from unit tests
Exclude publishing tests from unit tests
