-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
70 lines (70 loc) · 2 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
module.exports = function(config, specificOptions) {
config.set({
files: [
'node_modules/driver.js/dist/driver.min.css',
'node_modules/driver.js/dist/driver.min.js',
'node_modules/angular/angular.js',
'node_modules/angular-mocks/angular-mocks.js',
{
pattern: 'src/ngdriver.module.ts',
watched: false
},
{
pattern: 'test/**/*.spec.js',
watched: false
}
],
preprocessors: {
'src/**/*.ts': ['rollup'],
'test/**/*.spec.js': ['rollup']
},
rollupPreprocessor: {
output: {
name: 'ngdriver',
file: 'lib/ngdriver.js',
format: 'umd',
sourcemap: true,
globals: {
angular: 'angular',
'driver.js': 'Driver'
}
},
external: [ 'angular', 'driver.js' ],
plugins: [
require('rollup-plugin-node-resolve')({
extensions: [ '.ts', '.js', '.json' ]
}),
require('rollup-plugin-babel')({
extensions: [ '.ts', '.js', '.json' ]
})
]
},
mime: {
'text/x-typescript': ['ts','tsx']
},
frameworks: ['jasmine'],
autoWatch: true,
logLevel: config.LOG_INFO,
logColors: true,
browsers: [
'ChromeHeadless'
// 'Chrome'
],
browserDisconnectTimeout: 10000,
browserDisconnectTolerance: 2,
browserNoActivityTimeout: 30000,
reporters: [
// 'dots',
'progress'
],
specReporter: {
maxLogLines: 5, // limit number of lines logged per test
suppressErrorSummary: true, // do not print error summary
suppressFailed: false, // do not print information about failed tests
suppressPassed: true, // do not print information about passed tests
suppressSkipped: false, // do not print information about skipped tests
showSpecTiming: false, // print the time elapsed for each spec
failFast: false // test would finish with error when a first fail occurs.
}
});
};