-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
34 lines (33 loc) · 1.01 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
const puppeteer = require('puppeteer');
process.env.CHROME_BIN = puppeteer.executablePath();
module.exports = function (config) {
config.set({
basePath: '',
browsers: ['ChromeHeadless'],
frameworks: ['jasmine', 'karma-typescript'],
files: [
'src/**/*.ts'
],
preprocessors: {
'**/*.ts': ['karma-typescript']
},
karmaTypescriptConfig: {
compilerOptions: {
noImplicitAny: true,
noImplicitReturns: true,
noImplicitThis: true,
allowSyntheticDefaultImports: true,
// Compilation target is ES5 but some ES2015 features are enabled using shim.
// Tell the compiler that those newer features are available.
lib: ['DOM', 'ES5', 'ScriptHost', 'ES2015.Core', 'ES2015.Iterable']
}
},
reporters: ['progress', 'karma-typescript'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: false,
singleRun: true,
concurrency: Infinity
})
}