-
Notifications
You must be signed in to change notification settings - Fork 2
/
karma.conf.js
43 lines (43 loc) · 1.4 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
module.exports = function (config) {
config.set({
frameworks: ['mocha', 'karma-typescript'],
basePath: 'public/src/_static/',
files: ['js/**/*.ts'],
preprocessors: {
'**/*.ts': ['karma-typescript']
},
reporters: ['mocha', 'karma-typescript'],
port: 9876, // karma web server port
colors: false,
logLevel: config.LOG_INFO,
browsers: ['FirefoxHeadless'],
autoWatch: false,
// singleRun: false, // Karma captures browsers, runs the tests and exits
concurrency: Infinity,
karmaTypescriptConfig: {
compilerOptions: {
sourceMap: true,
strict: true,
noImplicitAny: true,
noImplicitThis: true,
alwaysStrict: true,
noUnusedLocals: false,
noUnusedParameters: false,
noImplicitReturns: true,
noFallthroughCasesInSwitch: true,
resolveJsonModule: true,
allowSyntheticDefaultImports: true,
moduleResolution: "node",
target: "es2015"
}
},
client: {
mocha: {
// change Karma's debug.html to the mocha web reporter
reporter: 'html',
ui: 'tdd'
// asyncOnly: true
}
}
});
};