Fix karma_test rule for plugins to use
Change 345145 broke this rule when removing karma testing in gerrit
core. It is not reverted due to conflicts, but all the deps and
config are simply copied back.
Release-Notes: skip
Change-Id: I4bfbd5bcdb5c12715385cf93a387928cfbbb8537
diff --git a/polygerrit-ui/BUILD b/polygerrit-ui/BUILD
index 76aeb07..640b763 100644
--- a/polygerrit-ui/BUILD
+++ b/polygerrit-ui/BUILD
@@ -43,3 +43,18 @@
"manual",
],
)
+
+# This is a dependency for karma_test rule in js.bzl that is only used by
+# plugins.
+sh_binary(
+ name = "karma_bin",
+ srcs = ["@ui_dev_npm//:node_modules/karma/bin/karma"],
+ data = [
+ "@ui_dev_npm//@open-wc/karma-esm",
+ "@ui_dev_npm//karma-chrome-launcher",
+ "@ui_dev_npm//karma-mocha",
+ "@ui_dev_npm//karma-mocha-reporter",
+ "@ui_dev_npm//karma/bin:karma",
+ "@ui_dev_npm//mocha",
+ ],
+)