File: karma.conf.js

package info (click to toggle)
node-react-audio-player 0.11.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 6,492 kB
  • sloc: makefile: 7; sh: 2
file content (37 lines) | stat: -rw-r--r-- 777 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
module.exports = function(config) {
  config.set({
    browsers: ['Chrome'],
    files: [
      './spec/*_spec.js',
    ],
    frameworks: ['jasmine'],
    preprocessors: {
      './spec/*_spec.js': ['webpack'],
    },
    webpack: {
      module: {
        loaders: [
          {
            test: /\.jsx?$/,
            exclude: /(node_modules|bower_components)/,
            loader: 'babel', // 'babel-loader' is also a legal name to reference
            query: {
              presets: ['react', 'es2015']
            }
          },
          {
            test: /\.ogg/,
            loader: 'file'
          }
        ],
        query: {
          presets: ['es2015']
        },
      },
      watch: true,
    },
    webpackServer: {
      noInfo: true,
    },
  });
};