-
-
Notifications
You must be signed in to change notification settings - Fork 643
/
karma.defaults.js
55 lines (54 loc) · 1.38 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
const pkg = require('./package.json');
module.exports = {
basePath: '',
frameworks: ['qunit'],
plugins: ['karma-qunit', 'karma-chrome-launcher', 'karma-sauce-launcher', 'karma-story-reporter'],
files: [
'./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,
browserDisconnectTolerance: 2,
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',
},
},
};