-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkarma.debug.browser.conf.js
45 lines (41 loc) · 1.42 KB
/
karma.debug.browser.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
44
45
// Default to using edge locally -- choose your own browser as required
process.env.CHROME_BIN = "C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe";
//process.env.CHROME_BIN = require('puppeteer').executablePath();
module.exports = function (config) {
config.set({
browsers: ["Chromium_without_security"],
listenAddress: 'localhost',
hostname: 'localhost',
frameworks: [ "mocha", "karma-typescript" ],
files: [
{ pattern: "lib/src/**/*.ts" },
{ pattern: "lib/test/src/browser/**/*.ts" },
{ pattern: "lib/test/src/common/**/*.ts" }
],
preprocessors: {
"lib/src/**/*.ts": [ "karma-typescript" ],
"lib/test/src/**/*.ts": [ "karma-typescript" ]
},
karmaTypescriptConfig: {
tsconfig: "./lib/test/tsconfig.test.karma.json",
compilerOptions: {
sourceMap: true
},
bundlerOptions: {
sourceMap: true
},
coverageOptions: {
instrumentation: false,
sourceMap: true
}
},
logLevel: config.LOG_INFO,
reporters: [ "spec" ],
customLaunchers: {
Chromium_without_security: {
base: 'Chrome',
flags: ['--disable-web-security', '--disable-site-isolation-trials']
}
}
});
}