mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 12:13:33 +08:00
36 lines
843 B
JavaScript
36 lines
843 B
JavaScript
/**
|
|
* Base karma config, assumes chrome headless and webpack
|
|
*/
|
|
|
|
const webpackConfigFunc = require("./webpack.config.unittest");
|
|
|
|
module.exports = (config) => {
|
|
// Karma does not execute the webpack config function by default
|
|
const webpackConfig = webpackConfigFunc(
|
|
{},
|
|
{
|
|
mode: "testing",
|
|
}
|
|
);
|
|
|
|
return {
|
|
basePath: "../../src",
|
|
browsers: ["ChromeHeadlessNoSandbox"],
|
|
client: {
|
|
captureConsole: true,
|
|
},
|
|
failOnEmptyTestSuite: false,
|
|
singleRun: true,
|
|
webpack: webpackConfig,
|
|
webpackMiddleware: {
|
|
noInfo: true,
|
|
},
|
|
customLaunchers: {
|
|
ChromeHeadlessNoSandbox: {
|
|
base: "ChromeHeadless",
|
|
flags: ["--no-sandbox"],
|
|
},
|
|
},
|
|
};
|
|
};
|