-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
33 lines (32 loc) · 993 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
var path = require('path');
var basePath = path.resolve(__dirname, './');
// var masterConf = require(join(basePath, 'node_modules/frontier-build-tools/test/karma.config'));
module.exports = function(config) {
config.set({
autoWatch: true,
basePath: basePath,
browsers: ['PhantomJS'],
coverageReporter: {
dir: 'reports/coverage/',
reporters: [
{ type: 'html', subdir: 'html' },
{ type: 'lcovonly', subdir: '.', file: 'lcov.txt' },
{ type: 'text', subdir: '.', file: 'text.txt' },
{ type: 'text-summary', subdir: '.', file: 'text-summary.txt' },
{ type: 'text-summary' }
]
},
files: [
// testing tools`
'node_modules/babel-polyfill/dist/polyfill.js',
'test.js'
],
frameworks: ['mocha', 'chai'],
logLevel: config.LOG_ERROR,
preprocessors: {
'assets/**/test/**/*.js': ['babel'],
'dist/modules/**/*.js': 'coverage'
},
reporters: ['mocha', 'coverage']
})
}