forked from jimp-dev/jimp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
53 lines (44 loc) · 1.31 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
51
52
53
// Karma configuration
// Generated on Sat Jan 28 2017 19:40:10 GMT-0300 (BRT)
module.exports = function(config) {
config.set({
browserDisconnectTimeout: 25000,
browserNoActivityTimeout: 25000,
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['browserify', 'mocha'],
browserify: {
debug: true,
transform: ['babelify']
},
preprocessors: {
'packages/**/**/*.js': 'browserify'
},
// list of files / patterns to load in the browser
files: [
'./packages/**/test/*.js',
{
pattern: 'packages/**/test/images/**/*',
watched: false,
included: false,
served: true
},
{
pattern: 'packages/plugin-print/fonts/**/*',
watched: false,
included: false,
served: true
}
],
proxies: {
'/packages/plugin-print/fonts/': '/base/packages/plugin-print/fonts/'
},
// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,
// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['Firefox', 'Chrome'],
reporters: ['mocha']
});
};