generated from digitalcredentials/isomorphic-lib-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
44 lines (34 loc) · 1023 Bytes
/
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
module.exports = function (config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
frameworks: ['mocha', 'chai', 'karma-typescript'],
files: [
'src/**/*.ts',
'test/**/*.ts' // *.tsx for React Jsx
],
karmaTypescriptConfig: {
reports: {} // Disables the code coverage report
},
preprocessors: {
'**/*.ts': 'karma-typescript' // *.tsx for React Jsx
},
reporters: ['mocha', 'karma-typescript'],
browsers: ['ChromeHeadless'],
// Continuous Integration mode
// if true, Karma captures browsers, runs the test and exits
singleRun: true,
// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,
// Mocha
client: {
mocha: {
// increase from default 2s
timeout: 10000
// reporter: 'html'
}
},
colors: true
})
}