-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
karma.conf.js
32 lines (30 loc) · 896 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
/*eslint-env node */
"use strict"
process.env.CHROME_BIN = require("puppeteer").executablePath() //eslint-disable-line no-process-env
module.exports = function(config) {
config.set({
browsers: ["MyHeadlessChrome"],
customLaunchers: {
MyHeadlessChrome: {
base: "ChromeHeadless",
flags: [
"--disable-extensions",
"--disable-translate",
"--no-sandbox",
],
},
},
files: [{ pattern: "test/*.js", watched: false }],
frameworks: ["mocha"],
preprocessors: {
"test/*.js": ["webpack", "sourcemap"],
},
webpack: {
mode: "development",
resolve: {
extensions: [".js", ".json"],
},
devtool: "inline-source-map",
},
})
}