forked from segmentio/analytics.js-core
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkarma.conf.ts
51 lines (41 loc) · 951 Bytes
/
karma.conf.ts
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
45
46
47
48
49
50
51
/* eslint-env node */
'use strict';
// 10 minutes
var TEST_TIMEOUT = 10 * 60 * 1000;
module.exports = function(config) {
config.set({
files: [
{ pattern: 'test/support/*.html', included: false },
'test/support/global.ts', // NOTE: This must run before all tests
'test/**/*.test.ts',
'lib/**/*.ts'
],
browsers: ['ChromeHeadless'],
singleRun: true,
frameworks: ['mocha', 'karma-typescript'],
reporters: ['spec'],
preprocessors: {
'**/*.ts': 'karma-typescript'
},
browserNoActivityTimeout: TEST_TIMEOUT,
client: {
mocha: {
grep: process.env.GREP,
timeout: TEST_TIMEOUT
}
},
browserify: {
debug: true
},
karmaTypescriptConfig: {
bundlerOptions: {
sourceMap: true,
},
compilerOptions: {
sourceMap: true,
esModuleInterop: true
},
include: ["lib", "test"],
}
});
};