-
Notifications
You must be signed in to change notification settings - Fork 1
/
karma.conf.js
48 lines (42 loc) · 1.22 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
// Karma configuration
var webpack_config = require("./webpack.config");
module.exports = function(config) {
config.set({
// ... normal karma configuration
basePath: '',
frameworks: ['jasmine'],
files: [
// all files ending in "_test"
'tests/*_test.*',
'tests/**/*_test.*'
// each file acts as entry point for the webpack configuration
],
preprocessors: {
// add webpack as preprocessor
'tests/*_test.*': ['webpack', 'sourcemap'],
'tests/**/*_test.*': ['webpack', 'sourcemap']
},
port: 8065,
logLevel: config.LOG_INFO,
colors: true,
autoWatch: true,
browsers: ['Chrome'],
reporters: ['progress'],
captureTimeout: 60000,
singleRun: false,
mime: {
'text/x-typescript': ['ts','tsx']
},
webpack: {
cache: true,
devtool: 'inline-source-map',
mode: 'development',
resolve: webpack_config.resolve,
module: webpack_config.module,
externals: webpack_config.externals,
},
webpackMiddleware: {
noInfo: true
}
});
};