-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
karma.conf.js
36 lines (34 loc) · 865 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
"use strict";
process.env.CHROME_BIN = require("puppeteer").executablePath();
exports = module.exports = function(config) {
config.set({
basePath: "",
browsers: ["ChromeHeadlessNoSandbox"],
colors: true,
concurrency: Infinity,
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: "ChromeHeadless",
flags: ["--no-sandbox --disable-setuid-sandbox"]
}
},
exclude: [],
files: [{ pattern: "source/**/*-spec.ts", watched: false }],
frameworks: ["mocha"],
logLevel: config.LOG_INFO,
mime: {
"text/x-typescript": ["ts"]
},
port: 9876,
preprocessors: {
"source/**/*-spec.ts": ["webpack"]
},
proxies: {},
reporters: ["spec"],
webpack: require("./webpack.config.test")({}),
webpackMiddleware: {
noInfo: true,
stats: "errors-only"
}
});
};