Skip to content

Commit

Permalink
fix: disable firefox headless in karma (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrums86 authored Feb 15, 2024
1 parent 78bc2d7 commit a90edcb
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion scripts/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,16 @@ module.exports = function(config) {

// see https://github.com/videojs/videojs-generate-karma-config
// for options
const options = {};
const options = {
browsers(aboutToRun) {
// TODO - current firefox headless fails to run w karma, blocking the npm version script.
// We should look into a better workaround that allows us to still run firefox through karma
// See https://github.com/karma-runner/karma-firefox-launcher/issues/328
return aboutToRun.filter(function(launcherName) {
return launcherName !== 'FirefoxHeadless';
});
}
};

config = generate(config, options);

Expand Down

0 comments on commit a90edcb

Please sign in to comment.