forked from FNNDSC/ami
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
46 lines (36 loc) · 1.26 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
const packageJSON = require('./package.json');
'use strict';
module.exports = function(karma) {
karma.set({
// frameworks to use
frameworks: ['jasmine', 'browserify', 'sinon'],
// list of files / patterns to load in the browser
files: [
'https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.16.0/polyfill.min.js',
`https://cdnjs.cloudflare.com/ajax/libs/three.js/${packageJSON.config.threeVersion}/three.js`,
// ,
// 'src/core/*.spec.js',
'specs/**/*.spec.js',
{pattern: 'data/**/*', included: false, watched: false, served: true},
],
reporters: ['spec'],
// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
'specs/**/*.spec.js': ['browserify'],
// 'src/core/*.spec.js': ['browserify']
},
browsers: ['PhantomJS'],
// web server port
// port: 9876,
// colors: true,
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: karma.LOG_WARN,
autoWatch: false,
singleRun: true,
browserify: {
debug: true,
transform: [['babelify', {'presets': ['es2015']}]],
},
});
};