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
module.exports = function (config) {
config.set({
basePath: '..',
frameworks: [
'mocha',
'detectBrowsers'
],
files: [
'dist/esprima.js',
'node_modules/lodash/index.js',
'test/dist/fixtures_js.js',
'test/dist/fixtures_json.js',
'test/utils/error-to-object.js',
'test/utils/create-testcases.js',
'test/utils/evaluate-testcase.js',
'test/browser-tests.js'
],
exclude: [],
client: {
mocha: {
reporter: 'html', // change Karma's debug.html to the mocha web reporter
ui: 'bdd'
}
},
reporters: ['dots'], // available reporters: https://npmjs.org/browse/keyword/karma-reporter
port: 9876,
colors: true,
logLevel: config.LOG_WARN, // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
autoWatch: true,
singleRun: false,
detectBrowsers: {
enabled: true,
usePhantomJS: false
},
plugins: [
'karma-mocha',
'karma-chrome-launcher',
'karma-edge-launcher',
'karma-firefox-launcher',
'karma-ie-launcher',
'karma-safari-launcher',
'karma-safaritechpreview-launcher',
'karma-detect-browsers'
]
});
}