-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
40 lines (39 loc) · 1022 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
// eslint-disable-next-line @typescript-eslint/no-var-requires
process.env.CHROME_BIN = require('puppeteer').executablePath()
module.exports = function (config) {
config.set({
singleRun: true,
frameworks: ['jasmine', 'karma-typescript'],
files: [
'src/**/*.ts',
'test/__browser__/**/*.ts',
{
pattern: 'test/data/**/*',
watched: false,
included: false,
served: true,
nocache: false,
},
],
preprocessors: {
'**/*.ts': 'karma-typescript',
},
reporters: ['progress', 'karma-typescript'],
browsers: ['ChromeHeadless'],
karmaTypescriptConfig: {
coverageOptions: {
instrumentation: false,
},
compilerOptions: {
target: 'es5',
module: 'CommonJS',
moduleResolution: 'node',
strict: true,
esModuleInterop: true,
skipLibCheck: true,
forceConsistentCasingInFileNames: true,
},
include: ['src/', 'test/__browser__/'],
},
})
}