From de880b8c61080d7e60a48a2fc8bc404bae543a41 Mon Sep 17 00:00:00 2001 From: Shir Bar Lev Date: Wed, 17 Apr 2024 14:30:40 +0100 Subject: [PATCH] Added a TODO to the Karma file. --- karma.conf.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/karma.conf.js b/karma.conf.js index 67dd6f7a4..b9203a00c 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -1,10 +1,17 @@ const path = require("path"); +// TODO: Figure out how to avoid defining the same module TWICE +// However, seems like Karma doesn't like ESM and since it's deprecated +// it's unlikely to get an update to fix that: +// https://github.com/karma-runner/karma/issues/3677 const { inlineComponentTemplate, inlineSVGs, updateEnvironmentVariables } = require("./processor"); const coverage = require("rollup-plugin-istanbul"); const commonjs = require("@rollup/plugin-commonjs"); const nodeResolve = require("@rollup/plugin-node-resolve").nodeResolve; const typescript = require("@rollup/plugin-typescript"); process.env.CHROME_BIN = "/usr/bin/google-chrome-stable"; +// process.env.CHROME_BIN = "/Users/shirbarlev/Applications/Google Chrome Canary.app" +const puppeteer = require("puppeteer"); +process.env.CHROME_BIN = puppeteer.executablePath(); // Karma configuration file module.exports = function (karma) {