forked from bleenco/angular-universal-seed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
50 lines (47 loc) · 1.32 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
50
const path = require('path');
module.exports = (config) => {
const webpackConfig = require('./webpack/webpack.test.js')({ env: 'test' });
const configuration = {
basePath: '.',
frameworks: ['jasmine'],
exclude: [],
files: [
{ pattern: './src/specs.js', watched: false },
{ pattern: './src/assets/**/*', watched: false, included: false, served: true, nocache: false },
{ pattern: './public/**/*', watched: false, included: false, served: true, nocache: false }
],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-webpack'),
require('karma-spec-reporter')
],
preprocessors: { './src/specs.js': ['webpack'] },
webpack: webpackConfig,
webpackMiddleware: {
noInfo: true,
stats: {
chunks: false
}
},
reporters: ['spec'],
specReporter: {
maxLogLines: 5,
suppressErrorSummary: false,
suppressFailed: false,
suppressPassed: false,
suppressSkipped: true,
showSpecTiming: true
},
port: 9876,
colors: true,
logLevel: config.LOG_ERROR,
autoWatch: false,
browsers: ['Chrome'],
mime: { 'text/x-typescript': ['ts', 'tsx'] },
singleRun: true,
concurrency: 1,
browserNoActivityTimeout: 10000
};
config.set(configuration);
};