-
Notifications
You must be signed in to change notification settings - Fork 1
/
karma.conf.js
49 lines (38 loc) · 1 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
49
'use strict';
var wiredep = require('wiredep');
var bowerDeps = wiredep({
directory: 'server/public/bower/bower',
exclude: ['bootstrap-sass-official'],
dependencies: true,
devDependencies: true
});
var bowerFiles = bowerDeps.js.map(function(file) {
return './' + file;
});
var files = bowerFiles.concat([
'./server/public/.tmp/assets/register.js',
'./server/public/.tmp/assets/index.js',
'./server/public/.tmp/assets/templateCacheHtml.js',
'./server/public/.tmp/assets/**/*.js',
'./server/public/.tmp/assets/**/*.mock.js',
'./server/public/.tmp/assets/**/*.spec.js'
]);
var exclude = [];
module.exports = function(config) {
config.set({
autoWatch: false,
frameworks: ['jasmine'],
reporters: ['mocha'],
browsers: ['PhantomJS'],
captureTimeout: 60000,
plugins: [
'karma-mocha-reporter',
'karma-phantomjs-launcher',
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-jasmine'
],
files: files,
exclude: exclude
});
};