mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
3d6cdd6aaa
The ESM js files need to be referenced, and the router tests rely on `async/await` with change detection- so a special rule is required that downlevels `async/await` to generators (similar to the Angular CLI) PR Close #48521
34 lines
854 B
Python
34 lines
854 B
Python
load("//tools:defaults.bzl", "karma_web_test_suite", "ts_library")
|
|
load("//tools/circular_dependency_test:index.bzl", "circular_dependency_test")
|
|
|
|
circular_dependency_test(
|
|
name = "circular_deps_test",
|
|
entry_point = "angular/packages/router/upgrade/index.mjs",
|
|
deps = ["//packages/router/upgrade"],
|
|
)
|
|
|
|
ts_library(
|
|
name = "test_lib",
|
|
testonly = True,
|
|
srcs = glob(["**/*.ts"]),
|
|
deps = [
|
|
"//packages/common",
|
|
"//packages/common/testing",
|
|
"//packages/common/upgrade",
|
|
"//packages/core",
|
|
"//packages/core/testing",
|
|
"//packages/private/testing",
|
|
"//packages/router",
|
|
"//packages/router/testing",
|
|
"//packages/router/upgrade",
|
|
"//packages/upgrade/static",
|
|
],
|
|
)
|
|
|
|
karma_web_test_suite(
|
|
name = "test_web",
|
|
deps = [
|
|
":test_lib",
|
|
],
|
|
)
|