-
Notifications
You must be signed in to change notification settings - Fork 73
/
karma.conf.js
36 lines (35 loc) · 957 Bytes
/
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
/* jslint node: false */
module.exports = function (config) {
'use strict';
config.set({
plugins: ['karma-browserify', 'karma-phantomjs-launcher', 'karma-mocha'],
frameworks: ['browserify', 'mocha'],
files: ['lib/**/*.js', { pattern: 'lib/**/!(*.js)', included: false }, 'test/**/*.js', { pattern: 'test/**/!(*.js)', included: false }],
preprocessors: {
'lib/**/*.js': ['browserify'],
'test/**/*.js': ['browserify'],
},
client: {
mocha: {
reporter: 'html',
ui: 'bdd',
},
},
browserify: {
debug: true,
configure: function (bundle) {
bundle.on('prebundle', function () {
bundle.require('./lib/index', { expose: 'yadda' });
});
},
},
browsers: ['PhantomJS'],
reporters: ['progress'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: false,
captureTimeout: 6000,
singleRun: true,
});
};