mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Since the `defaults.bzl` repo-wide macros are now supporting ESM, the special spec-bundle logic from `devtools` can be removed. Also the esbuild configurations need to be updated to account for the recent dev-infra build-tooling changes. Also properly now ensures that `aysnc/await` is downleveled for ZoneJS compatibility. PR Close #48521
20 lines
752 B
Python
20 lines
752 B
Python
# Re-export of Bazel rules with devtools-wide defaults
|
|
|
|
load("//tools:defaults.bzl", _karma_web_test_suite = "karma_web_test_suite")
|
|
|
|
def karma_web_test_suite(name, **kwargs):
|
|
# Set up default browsers if no explicit `browsers` have been specified.
|
|
if not hasattr(kwargs, "browsers"):
|
|
kwargs["tags"] = ["native"] + kwargs.get("tags", [])
|
|
kwargs["browsers"] = [
|
|
"@npm//@angular/build-tooling/bazel/browsers/chromium:chromium",
|
|
|
|
# todo(aleksanderbodurri): enable when firefox support is done
|
|
# "@npm//@angular/build-tooling/bazel/browsers/firefox:firefox",
|
|
]
|
|
|
|
# Default test suite with all configured browsers.
|
|
_karma_web_test_suite(
|
|
name = name,
|
|
**kwargs
|
|
)
|