forked from jquense/react-widgets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
50 lines (37 loc) · 977 Bytes
/
karma.conf.js
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
38
39
40
41
42
43
44
45
46
47
48
49
50
'use strict';
module.exports = function (config) {
//console.log(process.env.TRAVIS_CI)
config.set({
basePath: '',
frameworks: ['mocha', 'expect'],
files: [
'./vendor/phantomjs-shim.js',
'./vendor/sinon-1.10.3.js',
'./vendor/jquery-1.11.2.min.js',
'test.js',
],
reporters: ['mocha'],
port: 9876,
colors: true,
autoWatch: process.env.TRAVIS_CI ? false : true,
singleRun: process.env.TRAVIS_CI ? true : false,
logLevel: config.LOG_INFO,
browsers: [ 'PhantomJS'],
preprocessors: {
'test.js': ['webpack']
},
webpack: require('./webpack.configs').test,
webpackServer: {
noInfo: true
}
// },
// plugins: [
// require("karma-mocha-reporter"),
// require("karma-phantomjs-launcher"),
// require("karma-chrome-launcher"),
// require("karma-webpack"),
// require("karma-mocha"),
// require("karma-expect"),
// ]
});
};