-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
42 lines (41 loc) · 1.27 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
var webpack = require('webpack');
var webpackConfig = require('./webpack.config');
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['qunit'],
files: [
'tests/*.ts'
],
exclude: [
],
mime: {
'text/x-typescript': ['ts','tsx']
},
junitReporter: {
outputDir: 'tmp/testresults/',
outputFile: 'test-results.xml'
},
preprocessors: {
'**/*.ts': ['webpack', 'sourcemap']
},
webpack: {
module: webpackConfig[0].module,
resolve: webpackConfig[0].resolve,
plugins: [
new webpack.SourceMapDevToolPlugin({
filename: null, // if no value is provided the sourcemap is inlined
test: /\.(ts|js)($|\?)/i // process .js and .ts files only
})
]
},
reporters: ['progress', 'dots', 'junit'],
browsers: ['PhantomJS'],
colors: true,
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_WARN,
autoWatch: true,
singleRun: false,
concurrency: Infinity
})
}