-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
40 lines (39 loc) · 1.13 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
module.exports = function(config) {
config.set({
frameworks: ['browserify', 'mocha'],
files: [
'node_modules/babelify/node_modules/babel-core/browser-polyfill.js',
"z3.js",
"z3-test.js",
{pattern: "compiled/*", included: false},
],
proxies: {
'/compiled/': '/base/compiled/'
},
reporters: ['progress'],
port: 9876,
colors: true,
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ["Chrome"],
customLaunchers: {
Chrome_Travis_CI: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
singleRun: false,
preprocessors: {
"z3.js": ["browserify"],
"tests.js": ["browserify"]
},
"browserify": {
debug: true,
transform: ['babelify']
},
});
if (process.env.TRAVIS) {
config.browsers = ['Chrome_Travis_CI'];
}
};