-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathkarma.conf.js
30 lines (26 loc) · 946 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
module.exports = function(config) {
var configuration = {
frameworks: ['jasmine'],
files: [
'node_modules/webrtc-adapter/out/adapter.js',
'node_modules/msgpack-lite/dist/msgpack.min.js',
'node_modules/tweetnacl/nacl-fast.js',
'node_modules/@saltyrtc/client/dist/saltyrtc-client.es5.js',
'node_modules/@saltyrtc/chunked-dc/dist/chunked-dc.es5.js',
'tests/testsuite.js',
],
customLaunchers: {
Firefox_circle_ci: {
base: 'Firefox',
profile: '/home/ci/.mozilla/firefox/saltyrtc',
}
},
browserNoActivityTimeout: 120000 // ms, default: 10'000
};
if (process.env.CIRCLECI) {
configuration.browsers = ['ChromiumHeadless', 'Firefox_circle_ci'];
} else {
configuration.browsers = ['Chromium', 'Firefox'];
}
config.set(configuration);
}