mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
34f990986c
This commit extends the logic of the `downgradeModule` function to support NgModule class as an argument. This is needed to simplify the API surface to avoid the need to resolve NgModule factory before invoking the `downgradeModule` method. PR Close #43973
38 lines
946 B
Python
38 lines
946 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/upgrade/static/index.js",
|
|
deps = ["//packages/upgrade/static"],
|
|
)
|
|
|
|
ts_library(
|
|
name = "test_lib",
|
|
testonly = True,
|
|
srcs = glob([
|
|
"**/*.ts",
|
|
]),
|
|
deps = [
|
|
"//packages/core",
|
|
"//packages/core/testing",
|
|
"//packages/platform-browser",
|
|
"//packages/platform-browser-dynamic",
|
|
"//packages/platform-browser/testing",
|
|
"//packages/private/testing",
|
|
"//packages/upgrade/src/common",
|
|
"//packages/upgrade/src/common/test/helpers",
|
|
"//packages/upgrade/static",
|
|
],
|
|
)
|
|
|
|
karma_web_test_suite(
|
|
name = "test",
|
|
static_files = [
|
|
"//:angularjs_scripts",
|
|
],
|
|
deps = [
|
|
":test_lib",
|
|
],
|
|
)
|