forked from fancyapps/ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
50 lines (48 loc) · 1.6 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
module.exports = function (config) {
const process = require("process");
process.env.CHROME_BIN = require("puppeteer").executablePath();
config.set({
basePath: ".",
frameworks: ["mocha", "chai"],
files: [
{ pattern: "dist/*.css", watched: false, included: true },
{ pattern: "dist/*.js", type: "module", included: false, served: true },
{ pattern: "tests/**/*.png", watched: false, included: false, served: true, nocache: false },
{ pattern: "tests/**/*.jpg", watched: false, included: false, served: true, nocache: false },
{ pattern: "tests/**/*.html", watched: false, included: false, served: true, nocache: false },
{ pattern: "src/shared/**/*.js", type: "module", included: true, served: true },
{ pattern: "tests/*.js", type: "module" },
],
proxies: {
"/assets/": "/base/tests/assets/",
},
reporters: ["progress"],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
browsers: ["ChromeHeadlessNoSandbox"],
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: "ChromeHeadless",
flags: [
"--disable-gpu",
"--renderer",
"--no-sandbox",
"--no-service-autorun",
"--no-experiments",
"--no-default-browser-check",
"--disable-dev-shm-usage",
"--disable-setuid-sandbox",
"--no-first-run",
"--no-zygote",
"--single-process",
"--disable-extensions",
],
},
},
autoWatch: false,
singleRun: true,
browserDisconnectTimeout: 5000,
browserDisconnectTolerance: 2,
});
};