forked from recurly/recurly-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
39 lines (35 loc) · 947 Bytes
/
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
var staticConfig = {
basePath: '',
frameworks: ['mocha', 'fixture', 'sinon', 'phantomjs-shim', 'source-map-support'],
files: [
'build/recurly.js',
'build/test.js',
{ pattern: 'test/support/fixtures/*' },
],
proxies: { '/api': 'http://localhost:9877' },
preprocessors: {
'test/support/fixtures/*.html': ['html2js'],
'test/support/fixtures/*.json': ['json_fixtures']
},
jsonFixturesPreprocessor: {
variableName: '__json__'
},
reporters: ['mocha'],
port: 9876,
colors: true,
autoWatch: true,
browsers: ['PhantomJS'],
singleRun: true,
concurrency: Infinity,
browserDisconnectTimeout: 300000, // 5 minutes
browserNoActivityTimeout: 300000,
captureTimeout: 300000
};
var runner = function (config) {
config.set(Object.assign({}, staticConfig, {
logLevel: config.LOG_INFO
}));
};
var server = require('./test/server');
runner.staticConfig = staticConfig;
module.exports = runner;