forked from riotgear2/rg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
37 lines (37 loc) · 915 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
36
37
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['mocha', 'sinon-chai', 'riot'],
files: [
'node_modules/moment/min/moment.min.js',
'node_modules/commonmark/dist/commonmark.min.js',
'node_modules/chart.js/Chart.min.js',
'node_modules/ace-builds/src-min-noconflict/ace.js',
'node_modules/jquery/dist/jquery.min.js',
'dependencies/js/iframify.js',
'tags/**/*',
{ pattern: 'demo/inc.html', watched: false, included: false, served: true, nocache: false }
],
preprocessors: {
'tags/**/*.spec.js': ['babel'],
'tags/**/*.tag': ['riot', 'coverage']
},
riotPreprocessor: {
options: {
type: 'es6'
}
},
logLevel: config.LOG_ERROR,
reporters: ['mocha', 'coverage'],
coverageReporter: {
reporters: [{
type: 'html',
dir: 'coverage/'
}, {
type: 'text-summary'
}],
},
browsers: ['PhantomJS'],
singleRun: true
})
}