test: setup circular dependency tests for all entry points (#34774)
Sets up circular dependency tests for all entry-points in the project (except for the ones part of a deprecated package). PR Close #34774
This commit is contained in:
parent
fd3cfbb678
commit
970b22f98e
|
@ -1,4 +1,17 @@
|
|||
load("//tools:defaults.bzl", "jasmine_node_test", "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/animations/browser/index.js",
|
||||
deps = ["//packages/animations/browser"],
|
||||
)
|
||||
|
||||
circular_dependency_test(
|
||||
name = "testing_circular_deps_test",
|
||||
entry_point = "angular/packages/animations/browser/testing/index.js",
|
||||
deps = ["//packages/animations/browser/testing"],
|
||||
)
|
||||
|
||||
ts_library(
|
||||
name = "test_lib",
|
||||
|
|
|
@ -1,4 +1,11 @@
|
|||
load("//tools:defaults.bzl", "jasmine_node_test", "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/animations/index.js",
|
||||
deps = ["//packages/animations"],
|
||||
)
|
||||
|
||||
ts_library(
|
||||
name = "test_lib",
|
||||
|
|
|
@ -1,4 +1,11 @@
|
|||
load("//tools:defaults.bzl", "jasmine_node_test", "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/common/http/index.js",
|
||||
deps = ["//packages/common/http"],
|
||||
)
|
||||
|
||||
ts_library(
|
||||
name = "test_lib",
|
||||
|
|
|
@ -1,4 +1,11 @@
|
|||
load("//tools:defaults.bzl", "jasmine_node_test", "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/common/http/testing/index.js",
|
||||
deps = ["//packages/common/http/testing"],
|
||||
)
|
||||
|
||||
ts_library(
|
||||
name = "test_lib",
|
||||
|
|
|
@ -1,4 +1,17 @@
|
|||
load("//tools:defaults.bzl", "jasmine_node_test", "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/common/index.js",
|
||||
deps = ["//packages/common"],
|
||||
)
|
||||
|
||||
circular_dependency_test(
|
||||
name = "testing_circular_deps_test",
|
||||
entry_point = "angular/packages/common/testing/index.js",
|
||||
deps = ["//packages/common/testing"],
|
||||
)
|
||||
|
||||
ts_library(
|
||||
name = "test_lib",
|
||||
|
|
|
@ -1,4 +1,11 @@
|
|||
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
||||
load("//tools/circular_dependency_test:index.bzl", "circular_dependency_test")
|
||||
|
||||
circular_dependency_test(
|
||||
name = "circular_deps_test",
|
||||
entry_point = "angular/packages/common/upgrade/index.js",
|
||||
deps = ["//packages/common/upgrade"],
|
||||
)
|
||||
|
||||
ts_library(
|
||||
name = "test_lib",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
load("//tools:defaults.bzl", "jasmine_node_test", "karma_web_test_suite", "ts_library")
|
||||
load("//tools/circular_dependency_test:index.bzl", "circular_dependency_test")
|
||||
|
||||
# Test that should only be run in node
|
||||
NODE_ONLY = [
|
||||
|
@ -10,6 +11,12 @@ UTILS = [
|
|||
"aot/test_util.ts",
|
||||
]
|
||||
|
||||
circular_dependency_test(
|
||||
name = "circular_deps_test",
|
||||
entry_point = "angular/packages/compiler/index.js",
|
||||
deps = ["//packages/compiler"],
|
||||
)
|
||||
|
||||
ts_library(
|
||||
name = "test_utils",
|
||||
testonly = True,
|
||||
|
|
|
@ -1,7 +1,20 @@
|
|||
load("//tools:defaults.bzl", "jasmine_node_test", "karma_web_test_suite", "ts_library")
|
||||
load("//tools/circular_dependency_test:index.bzl", "circular_dependency_test")
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
circular_dependency_test(
|
||||
name = "circular_deps_test",
|
||||
entry_point = "angular/packages/core/index.js",
|
||||
deps = ["//packages/core"],
|
||||
)
|
||||
|
||||
circular_dependency_test(
|
||||
name = "testing_circular_deps_test",
|
||||
entry_point = "angular/packages/core/testing/index.js",
|
||||
deps = ["//packages/core/testing"],
|
||||
)
|
||||
|
||||
ts_library(
|
||||
name = "test_lib",
|
||||
testonly = True,
|
||||
|
|
|
@ -1,4 +1,11 @@
|
|||
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/elements/index.js",
|
||||
deps = ["//packages/elements"],
|
||||
)
|
||||
|
||||
ts_library(
|
||||
name = "test_lib",
|
||||
|
|
|
@ -1,4 +1,11 @@
|
|||
load("//tools:defaults.bzl", "jasmine_node_test", "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/forms/index.js",
|
||||
deps = ["//packages/forms"],
|
||||
)
|
||||
|
||||
ts_library(
|
||||
name = "test_lib",
|
||||
|
|
|
@ -1,4 +1,11 @@
|
|||
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
||||
load("//tools/circular_dependency_test:index.bzl", "circular_dependency_test")
|
||||
|
||||
circular_dependency_test(
|
||||
name = "circular_deps_test",
|
||||
entry_point = "angular/packages/language-service/index.js",
|
||||
deps = ["//packages/language-service"],
|
||||
)
|
||||
|
||||
ts_library(
|
||||
name = "test_lib",
|
||||
|
|
|
@ -1,4 +1,11 @@
|
|||
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
||||
load("//tools/circular_dependency_test:index.bzl", "circular_dependency_test")
|
||||
|
||||
circular_dependency_test(
|
||||
name = "circular_deps_test",
|
||||
entry_point = "angular/packages/localize/index.js",
|
||||
deps = ["//packages/localize"],
|
||||
)
|
||||
|
||||
ts_library(
|
||||
name = "test_lib",
|
||||
|
|
|
@ -1,4 +1,11 @@
|
|||
load("//tools:defaults.bzl", "jasmine_node_test", "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/platform-browser-dynamic/index.js",
|
||||
deps = ["//packages/platform-browser-dynamic"],
|
||||
)
|
||||
|
||||
ts_library(
|
||||
name = "test_lib",
|
||||
|
|
|
@ -1,4 +1,11 @@
|
|||
load("//tools:defaults.bzl", "jasmine_node_test", "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/platform-browser/animations/index.js",
|
||||
deps = ["//packages/platform-browser/animations"],
|
||||
)
|
||||
|
||||
ts_library(
|
||||
name = "test_lib",
|
||||
|
|
|
@ -1,10 +1,23 @@
|
|||
load("//tools:defaults.bzl", "jasmine_node_test", "karma_web_test_suite", "ts_library")
|
||||
load("//tools/circular_dependency_test:index.bzl", "circular_dependency_test")
|
||||
|
||||
exports_files([
|
||||
"browser/static_assets/200.html",
|
||||
"static_assets/test.html",
|
||||
])
|
||||
|
||||
circular_dependency_test(
|
||||
name = "circular_deps_test",
|
||||
entry_point = "angular/packages/platform-browser/index.js",
|
||||
deps = ["//packages/platform-browser"],
|
||||
)
|
||||
|
||||
circular_dependency_test(
|
||||
name = "testing_circular_deps_test",
|
||||
entry_point = "angular/packages/platform-browser/testing/index.js",
|
||||
deps = ["//packages/platform-browser/testing"],
|
||||
)
|
||||
|
||||
ts_library(
|
||||
name = "test_lib",
|
||||
testonly = True,
|
||||
|
|
|
@ -1,4 +1,17 @@
|
|||
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
||||
load("//tools/circular_dependency_test:index.bzl", "circular_dependency_test")
|
||||
|
||||
circular_dependency_test(
|
||||
name = "circular_deps_test",
|
||||
entry_point = "angular/packages/platform-server/index.js",
|
||||
deps = ["//packages/platform-server"],
|
||||
)
|
||||
|
||||
circular_dependency_test(
|
||||
name = "testing_circular_deps_test",
|
||||
entry_point = "angular/packages/platform-server/testing/index.js",
|
||||
deps = ["//packages/platform-server/testing"],
|
||||
)
|
||||
|
||||
ts_library(
|
||||
name = "test_lib",
|
||||
|
|
|
@ -1,4 +1,17 @@
|
|||
load("//tools:defaults.bzl", "jasmine_node_test", "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/index.js",
|
||||
deps = ["//packages/router"],
|
||||
)
|
||||
|
||||
circular_dependency_test(
|
||||
name = "testing_circular_deps_test",
|
||||
entry_point = "angular/packages/router/testing/index.js",
|
||||
deps = ["//packages/router/testing"],
|
||||
)
|
||||
|
||||
ts_library(
|
||||
name = "test_lib",
|
||||
|
|
|
@ -1,4 +1,11 @@
|
|||
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.js",
|
||||
deps = ["//packages/router/upgrade"],
|
||||
)
|
||||
|
||||
ts_library(
|
||||
name = "test_lib",
|
||||
|
|
|
@ -1,4 +1,11 @@
|
|||
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
||||
load("//tools/circular_dependency_test:index.bzl", "circular_dependency_test")
|
||||
|
||||
circular_dependency_test(
|
||||
name = "circular_deps_test",
|
||||
entry_point = "angular/packages/service-worker/config/index.js",
|
||||
deps = ["//packages/service-worker/config"],
|
||||
)
|
||||
|
||||
ts_library(
|
||||
name = "test_lib",
|
||||
|
|
|
@ -1,4 +1,11 @@
|
|||
load("//tools:defaults.bzl", "jasmine_node_test", "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/service-worker/index.js",
|
||||
deps = ["//packages/service-worker"],
|
||||
)
|
||||
|
||||
ts_library(
|
||||
name = "test_lib",
|
||||
|
|
|
@ -1,4 +1,11 @@
|
|||
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
||||
load("//tools/circular_dependency_test:index.bzl", "circular_dependency_test")
|
||||
|
||||
circular_dependency_test(
|
||||
name = "circular_deps_test",
|
||||
entry_point = "angular/packages/service-worker/worker/main.js",
|
||||
deps = ["//packages/service-worker/worker:main"],
|
||||
)
|
||||
|
||||
ts_library(
|
||||
name = "test_lib",
|
||||
|
|
|
@ -1,4 +1,11 @@
|
|||
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/index.js",
|
||||
deps = ["//packages/upgrade"],
|
||||
)
|
||||
|
||||
ts_library(
|
||||
name = "test_lib",
|
||||
|
|
|
@ -1,4 +1,11 @@
|
|||
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",
|
||||
|
|
|
@ -1,6 +1,13 @@
|
|||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
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/testing/index.js",
|
||||
deps = ["//packages/upgrade/static/testing"],
|
||||
)
|
||||
|
||||
ts_library(
|
||||
name = "test_lib",
|
||||
|
|
Loading…
Reference in New Issue