forked from michalsnik/aos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
63 lines (55 loc) · 1.3 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
63
// Karma configuration
// Generated on Mon Oct 19 2015 01:12:15 GMT+0200 (CEST)
var isTravis = process.env.TRAVIS || false;
var browsers = isTravis ? ['Chrome_travis_ci'] : ['Chrome'];
var singleRun = isTravis;
module.exports = function(config) {
config.set({
basePath: '',
browsers: browsers,
frameworks: ['jasmine-jquery', 'jasmine'],
files: [
'node_modules/babel-polyfill/dist/polyfill.js',
'test/index.js',
{
pattern: 'test/fixtures/**/*.html',
watched: true,
included: false,
served: true
}
],
preprocessors: {
'test/index.js': ['webpack']
},
webpack: {
devtool: 'inline-source-map',
module: {
loaders: [{
test: /\.js?$/,
exclude: [/bower_components/, /node_modules/],
loader: 'babel'
}, {
test: /\.scss$/,
loader: "css-loader?sourceMap!sass-loader"
}]
}
},
plugins: [
'karma-chrome-launcher',
'karma-jasmine-jquery',
'karma-jasmine',
'karma-webpack'
],
reporters: ['dots'],
customLaunchers: {
Chrome_travis_ci: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
port: 9876,
singleRun: singleRun,
colors: true,
logLevel: config.LOG_WARN
})
}