-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathkarma.conf.js
52 lines (51 loc) · 903 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
51
52
var path = require('path');
var fullPath = path.resolve.bind(null, __dirname);
/**
*
*/
module.exports = function(config) {
config.set({
files: [
'node_modules/jquery-ui/themes/base/base.css',
'node_modules/jquery-ui/themes/base/theme.css',
'node_modules/bootstrap/dist/css/bootstrap.css',
'node_modules/jquery/dist/jquery.js',
'node_modules/jquery-ui-dist/jquery-ui.min.js',
'dist/rgaa-jquery-ui.js',
'test/*.js'
],
frameworks: [
'mocha'
],
reporters: [
'mocha'
],
mochaReporter: {
colors: {
info: 'yellow'
}
},
browsers: [
'Chrome',
'Firefox'
],
preprocessors: {
'test/*.js': ['webpack']
},
webpack: {
devtool: 'inline-source-map',
module: {
loaders: [
{
test: /\.js$/i,
loader: 'babel-loader',
include: [
fullPath('src'),
fullPath('test')
]
}
]
}
}
});
};