-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathkarma.conf.js
33 lines (31 loc) · 860 Bytes
/
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
var webpackConfig = require('./webpack.config');
module.exports = function(config) {
var settings = {
basePath: '',
frameworks: ['jasmine'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
autoWatchBatchDelay: 300,
files: [
{pattern: './tests/**/*.spec.ts', watched: false},
],
preprocessors: {
'./tests/**/*.spec.ts': ['webpack'],
},
webpack: {
module: webpackConfig.module,
resolve: webpackConfig.resolve
},
webpackMiddleware: { noInfo: true },
reporters: ['mocha'],
browsers: ['Chrome'],
singleRun: false,
concurrency: Infinity,
mime: {
'text/x-typescript': ['ts','tsx']
}
};
config.set(settings);
};