-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma2.conf.js
45 lines (34 loc) · 1.01 KB
/
karma2.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
// Karma configuration
// Generated on Fri Feb 17 2017 09:50:54 GMT+0100 (CET)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['jasmine'],
client: {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
// list of files / patterns to load in the browser
files: [
'src/tests/example.js'
],
plugins: [
// Karma will require() these plugins
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-phantomjs-launcher'),
require('karma-jasmine-html-reporter')
],
exclude: [],
preprocessors: {},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome', 'PhantomJS'],
singleRun: false
})
}