-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma-integration.conf.js
64 lines (45 loc) · 1.43 KB
/
karma-integration.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) {
config.set({
basePath: '',
// (!) we can’t use babel preprocessor (https://github.com/babel/karma-babel-preprocessor) here
// because of https://github.com/nikku/karma-browserify#transforms
// and use https://github.com/babel/babelify below
frameworks: ['browserify', 'jasmine'],
files: [
'dist/js/lavaUtils-vendor.js',
'dist/js/lavaUtils.js',
'dist/js/lavaMail-vendor.js',
'dist/js/lavaMail.js',
'dist/js/lavaLogin.js',
'dist/js/vendor/LavaUtils/openpgp.js',
{pattern: 'dist/js/vendor/LavaUtils/openpgp.worker.js', included: false},
//we should have angular before mock it
'node_modules/angular-mocks/angular-mocks.js',
'node_modules/sinon/lib/sinon.js',
'node_modules/jasmine-sinon/lib/jasmine-sinon.js',
'node_modules/phantomjs-polyfill/bind-polyfill.js',
'node_modules/to-have-property/lib/index.js',
'src/tests/integration/**/*Spec.js'
],
proxies: {
'/js/vendor': 'http://localhost:9876/base/dist/js/vendor'
},
exclude: [],
preprocessors: {
'src/tests/**/*Spec.js': ['browserify']
},
browserify: {
debug: true,
// put here transformation that should be done before browserify
transform: ['babelify', 'envify', 'brfs']
},
reporters: ['progress'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['PhantomJS'],
singleRun: true,
browserNoActivityTimeout: 60000
});
};