-
Notifications
You must be signed in to change notification settings - Fork 1
/
karma-config.js
39 lines (30 loc) · 981 Bytes
/
karma-config.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
// karma.conf.js
var appConfigFile = './dev-conf.js'
module.exports = function(config) {
config.set({
// include browserify first in used frameworks
frameworks: [ 'browserify', 'mocha', 'sinon' ],
browsers: ['Chrome'], // 'Firefox'
files: [
'test/**/*-test.js'
],
preprocessors: {
'test/**/*-test.js': [ 'browserify' ]
},
// see what is going on
logLevel: 'LOG_DEBUG',
browserify: {
configure:function(bundle){
bundle.on('prebundle', function() {
//bundle.external('foobar');
bundle.require(appConfigFile, {expose:'AppConfig'});
});
},
global: true,
debug: true,
cache: {}, packageCache: {}, fullPaths: true,
transforms: [ 'reactify', 'coffeeify'],
extensions: ['.js', '.jsx', '.coffee']
}
});
}