bimplus-renderer
Version:
bim+ renderer
91 lines (75 loc) • 2.82 kB
JavaScript
// Karma configuration
// http://karma-runner.github.io/4.0/config/configuration-file.html
const webpackConfig = require("./karma.webpack");
module.exports = {
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: "",
browserConsoleLogOptions: {
terminal: false, // Turn off logging in console
},
// For firefox we get this error:
// Firefox was not killed in 2000 ms, sending SIGKILL.
// Default: 2000
processKillTimeout: 10000,
// fix for browser connection timeout error
captureTimeout: 60000,
browserDisconnectTimeout: 60000,
browserDisconnectTolerance: 1,
browserNoActivityTimeout: 60000, //by default 10000
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: [
"sharding",
"qunit",
"jquery-3.4.0",
"host-environment",
"webpack",
],
// Default search path for ifcjs wasm files is root folder but karama serves them in different path -> proxies need to be set up
proxies: {
"/web-ifc-mt.wasm": "/base/src/wasm/web-ifc-mt.wasm",
"/web-ifc.wasm": "/base/src/wasm/web-ifc.wasm",
},
// list of files / patterns to exclude
exclude: ["src/vendor/*.js", "src/compiledWorkers/*.js", "src/workers/*.js"],
// web server port (we use different ports for renderer, websdk and webclient !)
port: 9877,
// enable / disable colors in the output (reporters and logs)
colors: true,
// enable / disable watching file and executing tests whenever any file changes
autoWatch: false,
// For Firefox headless a Custom Launcher is needed
customLaunchers: {
FirefoxHeadless: {
base: "Firefox",
flags: ["-headless"],
},
ChromeExt: {
base: "Chrome",
flags: [
"--js-flags=--expose-gc",
"--disable-extensions",
"--no-sandbox",
"--disable-translate",
"--disable-search-engine-choice-screen",
],
},
},
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: true,
// Concurrency level
// how many browser should be started simultaneous
// concurrency: Infinity, // not possible because of WebGL(0000001B0FEA0000)::ForceLoseContext
concurrency: 1,
// webpack-karma docu
// https://github.com/webpack-contrib/karma-webpack
webpack: webpackConfig,
// For more information of webpack middleware output disable this configuration
// webpack-dev-middleware configuration
// https://www.npmjs.com/package/webpack-dev-middleware
webpackMiddleware: {
// webpack stats: https://webpack.js.org/configuration/stats/#stats
stats: "errors-only", // show additional info for webpack build process
},
};