-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathkarma.conf.js
49 lines (43 loc) · 1.29 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
module.exports = function (config) {
config.set({
frameworks: ["mocha"],
files: [
"./node_modules/unexpected/unexpected.js",
"./node_modules/unexpected-dom/unexpected-dom.js",
"./node_modules/unexpected-snapshot/unexpected-snapshot-browser.js",
"./node_modules/react/umd/react.development.js",
"./node_modules/react-dom/umd/react-dom.development.js",
"./node_modules/react-dom/umd/react-dom-test-utils.development.js",
"./node_modules/prop-types/prop-types.js",
"./node_modules/magicpen-prism/magicPenPrism.min.js",
"./unexpected-reaction.js",
"./test/common/browser.js",
"./build/test/index.spec.js",
],
client: {
mocha: {
reporter: "html",
timeout: 60000,
},
},
browsers: ["ChromeHeadless", "ie11"],
browserStack: {
video: false,
project:
process.env.TRAVIS_BRANCH === "master" &&
!process.env.TRAVIS_PULL_REQUEST_BRANCH // Catch Travis "PR" builds
? "unexpected-reaction"
: "unexpected-reaction-dev",
},
customLaunchers: {
ie11: {
base: "BrowserStack",
browser: "IE",
browser_version: "11",
os: "Windows",
os_version: "7",
},
},
reporters: ["dots", "BrowserStack"],
});
};