-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathkarma-gh-actions.conf.js
More file actions
64 lines (64 loc) · 1.91 KB
/
Copy pathkarma-gh-actions.conf.js
File metadata and controls
64 lines (64 loc) · 1.91 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
module.exports = function (config) {
config.set({
frameworks: ['jasmine'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-webpack'),
require('karma-sourcemap-loader')
],
files: [
{ pattern: 'test/browser/**/*.ts', watched: false }
],
preprocessors: {
'test/browser/**/*.ts': ['webpack', 'sourcemap']
},
reporters: ['progress'],
browsers: ['Chrome'],
webpack: {
mode: 'development',
devtool: 'inline-source-map',
resolve: {
extensions: ['.ts', '.js']
},
module: {
rules: [
{
test: /\.ts$/,
exclude: /node_modules/,
use: {
loader: 'ts-loader',
options: {
transpileOnly: true,
compilerOptions: {
sourceMap: true
}
}
}
}
]
}
},
webpackMiddleware: {
stats: 'errors-only'
},
coverageReporter: {
reporters: [
{ type: 'html', subdir: 'html' },
{ type: 'lcov', subdir: 'lcov' },
{ type: 'lcovonly', subdir: '.', file: 'report-lcovonly.txt' }
]
},
port: 9669,
colors: true,
autoWatch: false,
singleRun: true,
client: {
clearContext: true
},
logLevel: config.DEBUG,
browserDisconnectTolerance: 2,
browserNoActivityTimeout: 30000
});
};