-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
karma.conf.js
39 lines (36 loc) · 1002 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
37
38
39
"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"]
}
},
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"
}
});
};