blob: c665d663e3a8e655f84b67cadfba01e8246792c1 [file] [log] [blame]
Matteo Scandolod819c922016-12-02 14:06:14 -08001const conf = require('./gulp.conf');
2
3module.exports = function (config) {
4 const configuration = {
5 basePath: '../',
6 singleRun: false,
7 autoWatch: true,
8 logLevel: 'INFO',
9 junitReporter: {
10 outputDir: 'test-reports'
11 },
12 browsers: [
13 'Chrome'
14 ],
15 frameworks: [
16 'jasmine'
17 ],
18 files: [
19 'node_modules/es6-shim/es6-shim.js',
20 conf.path.src('index.spec.js')
21 ],
22 preprocessors: {
23 [conf.path.src('index.spec.js')]: [
24 'webpack'
25 ]
26 },
27 reporters: ['progress', 'coverage'],
28 coverageReporter: {
29 type: 'html',
30 dir: 'coverage/'
31 },
32 webpack: require('./webpack-test.conf'),
33 webpackMiddleware: {
34 noInfo: true
35 },
36 plugins: [
37 require('karma-jasmine'),
38 require('karma-junit-reporter'),
39 require('karma-coverage'),
40 require('karma-chrome-launcher'),
41 require('karma-webpack')
42 ]
43 };
44
45 config.set(configuration);
46};