forked from thomaschampagne/elevate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
40 lines (40 loc) · 1.39 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({
browsers: ['PhantomJS'],
frameworks: ['jasmine'],
files: [
'dist/config/env.js',
'dist/modules/**/*.js',
'dist/node_modules/underscore/underscore-min.js',
'dist/js/modifiers/extendedActivityData/views/AbstractDataView.js',
'dist/js/**/*.js',
'specs/**/*.js',
'specs/fixtures/**/*.json'
],
exclude: [
'dist/js/Background.js',
'dist/js/Constants.js',
'dist/js/Content.js',
'dist/modules/jquery.appear.js',
'dist/js/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
});
};