main
 1// Karma configuration
 2// Generated on Sun Jan 28 2018 13:49:43 GMT-0700 (MST)
 3
 4module.exports = function(config) {
 5  const tests = 'spec/javascripts/**/*.spec.js';
 6  config.set({
 7    basePath: '',
 8    frameworks: ['jasmine', 'fixture'],
 9    files: [
10      tests,
11      'spec/fixtures/**/*.html',
12      'spec/fixtures/**/*.json',
13      'node_modules/jquery/dist/jquery.min.js',
14    ],
15    exclude: [ ],
16    preprocessors: {
17      'app/javascript/packs/*.js': ['webpack', 'sourcemap'],
18      '**/*.html': ['html2js'],
19      '**/*.json': ['json_fixtures'],
20      [tests]: ['webpack', 'sourcemap']
21    },
22    reporters: ['mocha'],
23    mochaReporter: {
24      output: 'autowatch'
25    },
26    port: 9876,
27    colors: true,
28    logLevel: config.LOG_INFO,
29    autoWatch: true,
30    browsers: ['ChromeHeadless'],
31    singleRun: true,
32    concurrency: Infinity,
33    webpack: require('./config/webpack/test.js'),
34    webpackMiddleware: {
35      stats: 'errors-only'
36    }
37  })
38}