You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.6 KiB
50 lines
1.6 KiB
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,
|
|
});
|
|
};
|
|
|