Repository navigation
Expand file tree
/
Copy pathkarma.debug.worker.conf.js
More file actions
52 lines (47 loc) · 1.74 KB
/
Copy pathkarma.debug.worker.conf.js
File metadata and controls
52 lines (47 loc) · 1.74 KB
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
52
// 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: "common/test/worker-adapter.js" },
{ pattern: "lib/test/src/!(browser|esnext|node)/**/*.ts" },
{ pattern: "common/test/worker-test-runner.js", included: false, served: true, watched: false }
],
preprocessors: {
"lib/src/**/*.ts": ["karma-typescript"],
"lib/test/src/**/*.ts": ["karma-typescript"]
},
karmaTypescriptConfig: {
tsconfig: "./lib/test/tsconfig.worker.karma.json",
compilerOptions: {
sourceMap: false,
inlineSourceMap: true,
inlineSources: true,
module: "commonjs"
},
bundlerOptions: {
sourceMap: false
},
coverageOptions: {
instrumentation: false,
sourceMap: true
}
},
reporters: ["spec"],
customLaunchers: {
Chromium_without_security: {
base: "Chrome",
flags: ["--disable-web-security", "--disable-site-isolation-trials", "--no-sandbox"]
}
},
logLevel: config.LOG_INFO,
captureTimeout: 60000,
browserNoActivityTimeout: 60000
});
};