-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathkarma.conf.js
More file actions
42 lines (41 loc) · 895 Bytes
/
karma.conf.js
File metadata and controls
42 lines (41 loc) · 895 Bytes
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
/**
* @license
* Copyright Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
module.exports = (config) => {
config.set({
frameworks: ['jasmine', 'karma-typescript'],
plugins: [
'karma-jasmine',
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-typescript',
'karma-spec-reporter',
],
karmaTypescriptConfig: {
tsconfig: './tsconfig.json',
compilerOptions: {
module: 'commonjs',
},
},
files: [
{pattern: 'src/**/*.ts'},
{pattern: 'test/**/*.ts'},
],
preprocessors: {
'**/*.ts': 'karma-typescript',
},
reporters: ['spec', 'karma-typescript'],
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome', 'Firefox'],
singleRun: false,
client: {
jasmine: {
failSpecWithNoExpectations: true,
},
},
})
}