forked from surveyjs/survey-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
43 lines (42 loc) · 1.37 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
var webpack = require('webpack');
var webpackConfigCreator = require('./webpack.config');
var webpackConfig = webpackConfigCreator({ platform: "knockout", buildType: "dev" });
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['qunit'],
files: [
'tests/entries/*.ts'
],
exclude: [
],
mime: {
'text/x-typescript': ['ts','tsx']
},
junitReporter: {
outputDir: 'tmp/testresults/',
outputFile: 'test-results.xml'
},
preprocessors: {
'**/*.ts': ['webpack', 'sourcemap']
},
webpack: {
module: webpackConfig.module,
resolve: webpackConfig.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
})
};