Files
Greg Magolan 5a9059be38 build: share Saucelabs browsers between karma test targets using background Saucelabs daemon and custom karma launcher (#49200)
This upgrades the Saucelabs Bazel step on CI to use the more efficient Saucelabs daemon

PR Close #49200
2023-05-15 09:21:46 -07:00

27 lines
559 B
Python

load("//tools:defaults.bzl", "esbuild", "ts_library")
package(default_visibility = ["//visibility:public"])
ts_library(
name = "launcher",
srcs = [
"index.ts",
"launcher.ts",
],
deps = [
"//tools/saucelabs-daemon",
"@npm//@types/node",
],
)
# We need a commonjs version of the launcher that can be required from the
# root karma-js.conf.js.
esbuild(
name = "launcher_cjs",
entry_point = "index.ts",
format = "cjs",
output = "index.cjs",
platform = "node",
deps = [":launcher"],
)