forked from haltu/muuri
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
66 lines (66 loc) · 1.66 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
64
65
66
module.exports = function (config) {
var pkg = require('./package.json');
config.set({
basePath: '',
frameworks: ['qunit'],
plugins: [
'karma-qunit',
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-sauce-launcher',
'karma-story-reporter'
],
files: [
'./node_modules/hammerjs/hammer.js',
'./node_modules/velocity-animate/velocity.js',
'./node_modules/prosthetic-hand/dist/prosthetic-hand.js',
'./node_modules/mezr/mezr.js',
'./' + pkg.main,
'./tests/index.js',
'./tests/utils.js',
'./tests/grid-constructor/*.js',
'./tests/grid-options/*.js',
'./tests/grid-methods/*.js',
'./tests/grid-events/*.js',
'./tests/item-methods/*.js'
],
reporters: [
'story',
'saucelabs'
],
logLevel: config.LOG_INFO,
colors: true,
autoWatch: false,
captureTimeout: 240000,
browserDisconnectTimeout: 60000,
browserDisconnectTolerance: 10,
concurrency: 1,
singleRun: true,
hostname: '127.0.0.1',
sauceLabs: {testName: pkg.name + ' - ' + pkg.version + ' - unit tests'},
customLaunchers: {
slChrome: {
base: 'SauceLabs',
browserName: 'chrome',
platform: 'Windows 10',
version: 'latest'
},
slFirefox: {
base: 'SauceLabs',
browserName: 'firefox',
platform: 'Windows 10',
version: 'latest'
},
slSafari: {
base: 'SauceLabs',
browserName: 'safari',
version: 'latest'
},
slEdge: {
base: 'SauceLabs',
browserName: 'MicrosoftEdge',
version: 'latest'
}
}
});
};