-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathkarma.conf.js
39 lines (38 loc) · 1.09 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
'use strict';
module.exports = function(config) {
config.set({
files: [
{
pattern: 'demos/sample-data/*.json',
included: false
},
'node_modules/jquery/dist/jquery.js',
'node_modules/lodash/lodash.js',
'node_modules/inspire-tree/dist/inspire-tree.js',
'build/inspire-tree-dom.js',
'test/helpers.js',
'test/*/*.spec.js'
],
autoWatch: false,
basePath: '',
frameworks: ['mocha', 'chai', 'sinon-chai', 'es6-shim'],
customLaunchers: {
chromeTravisCI: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
browsers: [process.env.TRAVIS ? 'chromeTravisCI' : 'Chrome'],
port: 9876,
preprocessors: {
'build/inspire-tree.js': ['coverage']
},
reporters: ['mocha', 'coverage'],
coverageReporter: {
type: 'html',
dir: './coverage/',
subdir: 'karma'
},
singleRun: true
});
};