forked from straker/kontra
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathkarma.conf.js
41 lines (38 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
// Karma configuration
// Generated on Tue Apr 07 2015 23:14:35 GMT-0600 (MDT)
module.exports = function(config) {
config.set({
basePath: '',
singleRun: false,
autoWatch: true,
frameworks: ['mocha', 'chai', 'sinon'],
files: [
// setup
{pattern: 'test/setup.js', type: 'module' },
// assets
{pattern: 'test/imgs/*.*', included: false, served: true },
{pattern: 'test/audio/*.*', included: false, served: true },
{pattern: 'test/data/*.*', included: false, served: true },
{pattern: 'src/*.js', type: 'module', included: false },
{pattern: 'test/unit/*.spec.js', type: 'module' },
{pattern: 'test/integration/*.spec.js', type: 'module' },
],
preprocessors: {
'src/*.js': ["karma-coverage-istanbul-instrumenter"]
},
browsers: ['ChromeHeadless'],
proxies: {
'/imgs': '/base/test/imgs',
'/audio': '/base/test/audio',
'/data': '/base/test/data'
},
coverageIstanbulInstrumenter: {
esModules: true
},
reporters: ['mocha', 'coverage-istanbul'],
coverageIstanbulReporter: {
reports: ['html', 'lcovonly', 'text-summary'],
dir: 'coverage/'
}
});
};