-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
35 lines (30 loc) · 925 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
/**
* Created by mafengwo on 16/5/31.
*/
module.exports = function (config) {
config.set({
// base path used to resolve all patterns (e.g. files, exclude)
basePath: '',
// frameworks to use
frameworks: ['mocha', 'chai', 'sinon'],
// // list of files / patterns to load in the browser
files: [
'node_modules/underscore/underscore.js',
'node_modules/angular/angular.js',
'node_modules/angular-mocks/angular-mocks.js',
'src/**/*.js',
'test/**/*.spec.js'
],
// list of files to exclude
exclude: []
// preprocess matching files before serving them to the browser
// preprocessors: {
// 'src/*.js': ['coverage']
// },
//
// coverageReporter: {
// type: 'text-summary',
// dir: 'coverage/'
// }
});
};