forked from codeforamerica/city-analytics-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
48 lines (48 loc) · 1.52 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
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['mocha', 'chai-jquery', 'jquery-1.11.0', 'chai-changes', 'sinon-chai', 'chai', 'fixture'],
files: [
'public/javascripts/vendor/xhr.min.js',
'public/javascripts/vendor/time.min.js',
'public/javascripts/vendor/timeFormat.min.js',
'public/javascripts/vendor/handlebars-v3.0.3.js',
'public/javascripts/vendor/raphael-min.js',
'public/javascripts/vendor/morris.min.js',
'public/javascripts/helpers/helper.js',
'public/javascripts/helpers/templateHelper.js',
'public/javascripts/helpers/dataHelper.js',
'public/javascripts/helpers/raphaelHelper.js',
'public/javascripts/landing-pages.js',
'public/javascripts/search.js',
'public/javascripts/traffic.js',
'public/javascripts/content.js',
'tests/**/*Spec.js',
'tests/fixtures/**/*'
],
exclude: [
'**/*.swp'
],
preprocessors: {
'public/javascripts/*.js': ['coverage'],
'public/javascripts/helpers/*.js': ['coverage'],
'tests/**/*.json' : ['json_fixtures']
},
jsonFixturesPreprocessor: {
variableName: '__json__'
},
reporters: ['progress', 'coverage', 'coveralls'],
coverageReporter: {
reporters: [
{ type: 'html', subdir: 'report-html' },
{ type: 'lcov', subdir: 'lcov-report' },
],
},
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['PhantomJS'],
singleRun: false
});
};