This repository was archived by the owner on Jan 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathkarma.config.js
More file actions
49 lines (40 loc) · 1.36 KB
/
karma.config.js
File metadata and controls
49 lines (40 loc) · 1.36 KB
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
const webpack = require('webpack');
var webpackConfig = require('./webpack.config.js');
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['jasmine'],
files: [
'node_modules/babel-polyfill/dist/polyfill.js',
'test/client/tests.webpack.js',
'node_modules/jquery/dist/jquery.js',
'node_modules/bootstrap/dist/js/bootstrap.js',
{ pattern: 'public/img/**/*.jpg', included: false, watched: false, served: true},
{ pattern: 'public/img/**/*.png', included: false, watched: false, served: true}
],
proxies: {
'/img': '/base/public/img',
'/img/cards/00001.png': '/base/public/img/cards/cardback.jpg',
'/img/cards/TestCode.png': '/base/public/img/cards/cardback.jpg'
},
preprocessors: {
'test/client/tests.webpack.js': ['webpack', 'sourcemap']
},
reporters: ['dots', 'coverage'],
webpack: webpackConfig,
webpackMiddleware: {
noInfo: true
},
coverageReporter: {
type: 'html',
dir: 'coverage/'
},
port: 9877,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['PhantomJS'],
singleRun: false,
concurrency: Infinity
});
};