forked from blockchain/bitcoin-unocoin-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
64 lines (49 loc) · 1.34 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
module.exports = function (config) {
var configuration = {
basePath: './',
frameworks: ['jasmine', 'browserify'],
browsers: ['PhantomJS'],
browserNoActivityTimeout: 1000,
reportSlowerThan: 50,
logLevel: config.LOG_WARN,
client: {
captureConsole: true
},
autoWatch: true,
reporters: ['progress', 'coverage'],
coverageReporter: {
reporters: [
{ type: 'html', dir: 'coverage/' },
{ type: 'lcov', dir: 'coverage-lcov/' }
],
subdir: '.'
},
preprocessors: {
'src/**/*.js': ['browserify'],
'tests/**/*.js': ['browserify']
},
browserify: {
configure: function (bundle) {
bundle.once('prebundle', function () {
bundle.transform('browserify-istanbul'); // Must go first
bundle.transform('babelify', {
presets: ['es2015'],
ignore: [
/\/node_modules\/(?!bitcoin-exchange-client\/)/
],
global: true,
sourceMap: 'inline'
});
bundle.plugin('proxyquireify/plugin');
});
},
debug: true
},
files: [
'node_modules/babel-polyfill/dist/polyfill.js',
'node_modules/jasmine-es6-promise-matchers/jasmine-es6-promise-matchers.js',
'tests/*_spec.js'
]
};
config.set(configuration);
};