forked from thomaschampagne/elevate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
50 lines (50 loc) · 1.82 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
module.exports = function (config) {
config.set({
browsers: ['PhantomJS'],
frameworks: ['jasmine'],
files: [
'dist/core/config/env.js',
'dist/core/modules/**/*.js',
'dist/node_modules/underscore/underscore-min.js',
'dist/node_modules/q/q.js',
'dist/node_modules/jquery/dist/jquery.js',
'dist/core/scripts/modifiers/extendedActivityData/views/AbstractDataView.js',
'dist/core/scripts/**/*.js',
'specs/**/*.js',
'specs/fixtures/**/*.json'
],
exclude: [
'dist/core/scripts/Background.js',
'dist/core/scripts/Constants.js',
'dist/core/scripts/Content.js',
'dist/core/modules/jquery.appear.js',
'dist/core/scripts/ReleaseNotes.js'
],
preprocessors: {
'specs/fixtures/**/*.json': ['json_fixtures']
},
jsonFixturesPreprocessor: {
// strip this from the file path \ fixture name
stripPrefix: 'specs/',
// strip this to the file path \ fixture name
prependPrefix: '',
// change the global fixtures variable name
variableName: '__fixtures__',
// camelize fixture filenames (e.g 'fixtures/aa-bb_cc.json' becames __fixtures__['fixtures/aaBbCc'])
camelizeFilenames: true,
// transform the filename
transformPath: function (path) {
return path + '.js';
}
},
singleRun: true,
// captureTimeout: 2000,
// browserDisconnectTimeout: 10000,
// browserDisconnectTolerance: 3,
// browserNoActivityTimeout: 900000,
browserConsoleLogOptions: {
// path: './specs.log',
terminal: false
}
});
};