forked from yabwe/medium-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
150 lines (133 loc) · 4.26 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
/* global module */
module.exports = function (config) {
config.set({
browserStack: {
apiClientEndpoint: 'https://api.browserstack.com',
timeout: 600
},
customLaunchers: {
WIN81Chrome: {
'base': 'BrowserStack',
'os': 'Windows',
'os_version': '8.1',
'browser': 'chrome'
},
WIN81Firefox: {
'base': 'BrowserStack',
'os': 'Windows',
'os_version': '8.1',
'browser': 'firefox'
},
WIN81Edge: {
'base': 'BrowserStack',
'os': 'Windows',
'os_version': '8.1',
'browser': 'edge'
},
WIN10Chrome: {
'base': 'BrowserStack',
'os': 'Windows',
'os_version': '10',
'browser': 'chrome'
},
WIN10Firefox: {
'base': 'BrowserStack',
'os': 'Windows',
'os_version': '10',
'browser': 'firefox'
},
WIN10Edge: {
'base': 'BrowserStack',
'os': 'Windows',
'os_version': '10',
'browser': 'edge'
},
OSXYosemiteSafari: {
'base': 'BrowserStack',
'os': 'OS X',
'os_version': 'Yosemite',
'browser': 'safari'
},
OSXElCapitanChrome: {
'base': 'BrowserStack',
'os': 'OS X',
'os_version': 'El Capitan',
'browser': 'chrome'
},
OSXElCapitanSafari: {
'base': 'BrowserStack',
'os': 'OS X',
'os_version': 'El Capitan',
'browser': 'safari'
},
OSXElCapitanFirefox: {
'base': 'BrowserStack',
'os': 'OS X',
'os_version': 'El Capitan',
'browser': 'firefox'
}
},
basePath: '',
frameworks: ['jasmine'],
files: [
'dist/css/*.css',
'node_modules/lodash/lodash.js',
'src/js/polyfills.js',
'src/js/globals.js',
'src/js/util.js',
'src/js/extension.js',
'src/js/selection.js',
'src/js/events.js',
'src/js/extensions/button.js',
'src/js/defaults/buttons.js',
'src/js/extensions/form.js',
'src/js/extensions/anchor.js',
'src/js/extensions/anchor-preview.js',
'src/js/extensions/auto-link.js',
'src/js/extensions/file-dragging.js',
'src/js/extensions/keyboard-commands.js',
'src/js/extensions/fontname.js',
'src/js/extensions/fontsize.js',
'src/js/extensions/paste.js',
'src/js/extensions/placeholder.js',
'src/js/extensions/toolbar.js',
'src/js/extensions/deprecated/image-dragging.js',
'src/js/core.js',
'src/js/defaults/options.js',
'src/js/version.js',
'spec/helpers/util.js',
'spec/*.spec.js'
],
exclude: [
'src/js/extensions/deprecated/*'
],
preprocessors: {
},
plugins: [
'karma-jasmine',
'karma-spec-reporter',
'karma-jasmine-html-reporter',
'karma-browserstack-launcher',
'karma-phantomjs-launcher',
'karma-firefox-launcher',
'karma-chrome-launcher',
'karma-coverage',
'karma-coveralls'
],
reporters: ['coverage', 'coveralls', 'BrowserStack', 'dots', 'spec', 'kjhtml'],
coverageReporter: {
type: 'lcov',
dir: 'coverage/'
},
port: 9876,
logLevel: config.LOG_ERROR,
colors: true,
autoWatch: false,
browsers: ['WIN10Edge', 'WIN10Chrome', 'WIN10Firefox', 'OSXElCapitanChrome', 'OSXElCapitanFirefox', 'OSXYosemiteSafari'],
client: {
clearContext: false
},
singleRun: true,
concurrency: Infinity
});
};