UNPKG

1.62 kBJavaScriptView Raw
1const singleRun = process.env.NODE_ENV !== 'bdd';
2
3module.exports = function(config) {
4 var testWebpackConfig = require('./webpack.test.js');
5
6 var configuration = {
7 basePath: '',
8
9 frameworks: ['jasmine'],
10
11 // list of files to exclude
12 exclude: [ ],
13
14 /*
15 * list of files / patterns to load in the browser
16 *
17 * we are building the test environment in ./spec-bundle.js
18 */
19 files: [ { pattern: './config/spec-bundle.js', watched: false } ],
20
21 preprocessors: { './config/spec-bundle.js': ['webpack', 'sourcemap'] },
22
23 // Webpack Config at ./webpack.test.js
24 webpack: testWebpackConfig,
25
26 // coverageReporter: {
27 // dir : 'coverage/',
28 // reporters: [
29 // { type: 'text-summary' },
30 // { type: 'json' },
31 // { type: 'html' }
32 // ]
33 // },
34
35 // Webpack please don't spam the console when running in karma!
36 webpackServer: { noInfo: true },
37
38 // reporters: [ 'mocha', 'coverage' ],
39 reporters: [ 'mocha' ],
40
41 // web server port
42 port: 9876,
43
44 colors: true,
45
46 /*
47 * level of logging
48 * possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
49 */
50 logLevel: config.LOG_INFO,
51
52 autoWatch: true,
53
54 browsers: [
55 'PhantomJS'
56 ],
57
58 // customLaunchers: {
59 // Chrome_travis_ci: {
60 // base: 'Chrome',
61 // flags: ['--no-sandbox']
62 // }
63 // },
64
65 singleRun: singleRun
66 };
67
68 // if(process.env.TRAVIS){
69 // configuration.browsers = ['Chrome_travis_ci'];
70 // }
71
72 config.set(configuration);
73};