forked from asterlibraryjs/aster-js-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.debug.js
30 lines (29 loc) · 1.06 KB
/
karma.debug.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
const process = require("process");
const puppeteer = require("puppeteer");
module.exports = function (config) {
process.env.CHROME_BIN = puppeteer.executablePath();
config.set({
frameworks: ["mocha", "chai", "sinon"],
files: [
{ pattern: ".bin/tests.js", watched: false },
{ pattern: ".bin/tests.js.map", included: false, served: true, watched: false, nocache: true },
{ pattern: "node_modules/mocha/mocha.js.map", included: false, served: true, watched: false, nocache: true },
],
exclude: [],
colors: true,
logLevel: config.LOG_INFO,
reporters: ["mocha"],
autoWatch: false,
port: 8081,
browsers: ["ChromeNoExtensions"],
browserDisconnectTolerance: 3,
browserNoActivityTimeout: 100000,
customLaunchers: {
ChromeNoExtensions: {
base: "Chrome",
flags: ["--disable-translate", "--disable-extensions", "--remote-debugging-port=9223"]
}
},
singleRun: false
});
};