-
Notifications
You must be signed in to change notification settings - Fork 6
/
karma.conf.js
46 lines (40 loc) · 1.08 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
module.exports = function (config) {
config.set({
frameworks: ['mocha'],
files: [
'./node_modules/unexpected/unexpected.js',
'./node_modules/unexpected-snapshot/unexpected-snapshot-browser.js',
'./unexpected-dom.js',
'./test/common/browser.js',
'./build/tests.js',
],
client: {
mocha: {
reporter: 'html',
timeout: 60000,
},
},
browserStack: {
video: false,
project:
process.env.TRAVIS_BRANCH === 'master' &&
!process.env.TRAVIS_PULL_REQUEST_BRANCH // Catch Travis "PR" builds
? 'unexpected-dom'
: 'unexpected-dom-dev',
// Attempt to fix timeouts on CI:
// https://github.com/karma-runner/karma-browserstack-launcher/pull/168#issuecomment-582373514
timeout: 1800,
},
browsers: ['ChromeHeadless', 'ie11'],
customLaunchers: {
ie11: {
base: 'BrowserStack',
browser: 'IE',
browser_version: '11',
os: 'Windows',
os_version: '7',
},
},
reporters: ['dots', 'BrowserStack'],
});
};