-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
43 lines (43 loc) · 1.18 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
module.exports = function(config) {
config.set({
hostname: 'localhost',
/* bump timeouts a bit for CBT test runners */
captureTimeout: 120000,
browserNoActivityTimeout: 120000,
frameworks: [
/* mocha unit test framework */
'mocha',
/* browserify browserification framework */
'browserify'
],
files: [
{
pattern: 'test/**/*.test.js',
served: true,
included: true,
},
{
pattern: 'test/**/*.html',
served: true,
included: false,
},
{
pattern: 'lib/**/*.js',
served: true,
included: true,
},
{
pattern: 'dist/**/*.*',
served: true,
included: false,
}
],
preprocessors: {
/* apply browserify to all tests and lib files */
'test/**/*.js': [ 'browserify' ],
'lib/**/*.js' : [ 'browserify' ],
},
reporters: ['mocha'],
browsers: ['Chrome']
});
};