-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathkarma.manual.conf.js
48 lines (41 loc) · 951 Bytes
/
karma.manual.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
const webpack = require('karma-webpack');
const webpackConfig = require('./webpack.config');
module.exports = (config) => {
config.set({
basePath: '',
files: [
'test/*.spec.js',
],
// list of files to exclude
exclude: [
],
frameworks: ['mocha'],
plugins: [
webpack,
'karma-mocha',
'karma-spec-reporter',
],
// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
'**/*.js': 'webpack',
},
reporters: ['spec'],
// web server port
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: false,
singleRun: true,
concurrency: Infinity,
webpack: webpackConfig,
webpackMiddleware: {
noInfo: false,
stats: {
assets: false,
chunks: false,
modules: false,
},
},
});
};