-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathkarma.conf.js
56 lines (48 loc) · 1.48 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
44
45
46
47
48
49
50
51
52
53
54
55
56
'use strict'
// Karma configuration
// http://karma-runner.github.io/0.10/config/configuration-file.html
module.exports = function (config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '',
// testing framework to use (jasmine/mocha/qunit/...)
frameworks: ['mocha', 'sinon-chai', 'dirty-chai'],
// list of files / patterns to load in the browser
files: [
'node_modules/angular/angular.js',
'node_modules/angular-mocks/angular-mocks.js',
'node_modules/moment/moment.js',
'dist/bundle.js',
{ pattern: 'dist/bundle.js.map', included: false, watched: false },
'dist/index.html',
{ pattern: 'dist/fonts/*', watched: false, included: false, served: true, nocache: false },
'test/spec/controllers/*.js',
'test/spec/services/*.js'
],
proxies: {
'/fonts/': 'http://localhost:8090/base/dist/fonts/'
},
reporters: ['mocha'],
// list of files / patterns to exclude
exclude: [],
captureTimeout: 300000,
browserDisconnectTolerance: 3,
browserDisconnectTimeout : 300000,
browserNoActivityTimeout : 300000,
// web server port
port: 8090,
mochaReporter: {
showDiff: true,
output: 'autowatch'
},
// Start these browsers, currently available:
// - Chrome
// - ChromeCanary
// - Firefox
// - Opera
// - Safari (only Mac)
// - PhantomJS
// - IE (only Windows)
browsers: ['ChromeHeadless']
})
}