-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
63 lines (56 loc) · 1.79 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
/* jshint node:true */
"use strict";
module.exports = function(config) {
config.set({
basePath: './',
browsers: ['PhantomJS'],
port: 9877,
frameworks: ['mocha', 'chai', 'sinon-chai', 'chai-jquery', 'chai-as-promised', 'chai-things'],
plugins: [
'karma-babel-preprocessor',
'karma-firefox-launcher',
'karma-chrome-launcher',
'karma-phantomjs-launcher',
'karma-mocha-reporter',
'karma-mocha',
'karma-chai-plugins'
],
reporters: [
'mocha'
],
colors: true,
logLevel: config.LOG_INFO,
files: [
// styles
{ pattern: 'examples/booking/*.css', included: false },
// scripts
'test/lib/inherits.js',
'node_modules/chai-stats/chai-stats.js',
'node_modules/karma-babel-preprocessor/node_modules/babel-core/browser-polyfill.js',
'node_modules/requestanimationframe/app/requestAnimationFrame.js',
'node_modules/jquery/dist/jquery.js',
'node_modules/d3/d3.js',
'dist/built.js',
// test lib & helpers
'test/helper/EventSimulator.js',
'test/helper/DragSimulator.js',
'test/helper/generateRandomData.js',
'test/helper/timelineClickSimulator.js',
'test/helper/timelineDragSimulator.js',
// specs
'test/e2e.js'
],
preprocessors: {
"test/helper/*.js": ["babel"],
"test/e2e.js": ["babel"]
},
babelPreprocessor: {
stage: function() { return 0; }
},
client: {
mocha: {
timeout : 20000 // 20 seconds
}
}
});
};