Skip to content
Snippets Groups Projects
Commit ddb899b8 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Adjust for new karma config changes and test with firefox as well

parent 19bf21aa
No related branches found
No related tags found
No related merge requests found
Pipeline #14194 passed
// Trick to use the auto-downloaded puppeteer chrome binary module.exports = require('../../karma.common.conf.js');
process.env.CHROME_BIN = require('puppeteer').executablePath();
module.exports = function(config) {
config.set({
basePath: 'dist',
frameworks: ['mocha', 'chai'],
client: {
mocha: {
ui: 'tdd',
},
},
files: [
{pattern: './*.js', included: true, watched: true, served: true, type: 'module'},
{pattern: './**/*', included: false, watched: true, served: true},
],
autoWatch: true,
browsers: ['ChromeHeadlessNoSandbox'],
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
},
singleRun: false,
logLevel: config.LOG_ERROR
});
}
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
"i18next-scanner": "^2.10.2", "i18next-scanner": "^2.10.2",
"karma": "^5.1.0", "karma": "^5.1.0",
"karma-chrome-launcher": "^3.0.0", "karma-chrome-launcher": "^3.0.0",
"karma-firefox-launcher": "^1.3.0",
"karma-mocha": "^2.0.1", "karma-mocha": "^2.0.1",
"mocha": "^8.0.1", "mocha": "^8.0.1",
"puppeteer": "^5.3.1",
"rollup": "^2.19.0", "rollup": "^2.19.0",
"rollup-plugin-consts": "^1.0.1", "rollup-plugin-consts": "^1.0.1",
"rollup-plugin-copy": "^3.1.0", "rollup-plugin-copy": "^3.1.0",
......
...@@ -50,8 +50,8 @@ export default (async () => { ...@@ -50,8 +50,8 @@ export default (async () => {
sourcemap: true sourcemap: true
}, },
onwarn: function (warning, warn) { onwarn: function (warning, warn) {
// keycloak bundled code uses eval // ignore chai warnings
if (warning.code === 'EVAL') { if (warning.code === 'CIRCULAR_DEPENDENCY') {
return; return;
} }
warn(warning); warn(warning);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment