forked from haltu/muuri
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.defaults.js
71 lines (70 loc) · 1.64 KB
/
karma.defaults.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
67
68
69
70
71
const pkg = require('./package.json');
module.exports = {
basePath: '',
frameworks: ['qunit'],
plugins: [
'karma-qunit',
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-safari-launcher',
'karma-edge-launcher',
'karma-sauce-launcher',
'karma-story-reporter'
],
files: [
'./node_modules/hammerjs/hammer.js',
'./node_modules/web-animations-js/web-animations.min.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'
],
colors: true,
autoWatch: false,
captureTimeout: 240000,
browserDisconnectTimeout: 60000,
browserNoActivityTimeout: 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',
platform: 'macOS 10.12',
version: 'latest'
},
slEdge: {
base: 'SauceLabs',
browserName: 'MicrosoftEdge',
platform: 'Windows 10',
version: 'latest'
}
}
};