forked from liferay/senna.js
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkarma.conf.js
38 lines (37 loc) · 1009 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
37
38
module.exports = function(config) {
'use strict';
config.set({
frameworks: ['mocha'],
files: [
'bower_components/mocha/mocha.css',
'src/senna.js',
'src/utils/EventEmitter.js',
'src/utils/Cacheable.js',
'src/utils/DataAttributeHandler.js',
'src/app/App.js',
'src/route/Route.js',
'src/surface/Surface.js',
'src/screen/Screen.js',
'src/screen/RequestScreen.js',
'src/screen/HtmlScreen.js',
'src/vendor/Promise.js',
'bower_components/assert/assert.js',
'bower_components/mocha/mocha.js',
'test/fixture/util.js',
'test/test.js',
{
pattern: 'test/fixture/*',
included: false,
served: true
}
],
proxies: {
'/fixture': '/base/test/fixture'
},
preprocessors: {
'src/!(vendor)/**/*.js': ['coverage']
},
reporters: ['progress', 'coverage'],
browsers: ['Chrome', 'Firefox', 'Safari']
});
};