build: create a more focused build file for packages/compiler/render3 (#23168)
PR Close #23168
This commit is contained in:
parent
f544635014
commit
50ab8d8ad4
|
@ -15,7 +15,10 @@ UTILS = [
|
|||
ts_library(
|
||||
name = "test_utils",
|
||||
srcs = UTILS,
|
||||
visibility = ["//packages/compiler-cli/test:__subpackages__"],
|
||||
visibility = [
|
||||
"//packages/compiler-cli/test:__subpackages__",
|
||||
"//packages/compiler/test:__subpackages__",
|
||||
],
|
||||
deps = [
|
||||
"//packages:types",
|
||||
"//packages/compiler",
|
||||
|
@ -68,7 +71,6 @@ jasmine_node_test(
|
|||
"//packages/common:npm_package",
|
||||
"//packages/core:npm_package",
|
||||
],
|
||||
# dissable since tests are running but not yet passing
|
||||
deps = [
|
||||
":test_lib",
|
||||
":test_node_only_lib",
|
||||
|
@ -79,7 +81,6 @@ jasmine_node_test(
|
|||
|
||||
ts_web_test(
|
||||
name = "test_web",
|
||||
# disable since tests are running but not yet passing
|
||||
deps = [
|
||||
":test_lib",
|
||||
],
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
load("//tools:defaults.bzl", "ts_library", "ts_web_test")
|
||||
load("@build_bazel_rules_nodejs//:defs.bzl", "jasmine_node_test")
|
||||
|
||||
ts_library(
|
||||
name = "test_lib",
|
||||
testonly = 1,
|
||||
srcs = glob(
|
||||
["**/*.ts"],
|
||||
),
|
||||
deps = [
|
||||
"//packages:types",
|
||||
"//packages/compiler",
|
||||
"//packages/compiler/test:test_utils",
|
||||
"//packages/core",
|
||||
],
|
||||
)
|
||||
|
||||
jasmine_node_test(
|
||||
name = "test",
|
||||
bootstrap = ["angular/tools/testing/init_node_spec.js"],
|
||||
data = [
|
||||
"//packages/common:npm_package",
|
||||
"//packages/core:npm_package",
|
||||
],
|
||||
deps = [
|
||||
":test_lib",
|
||||
"//tools/testing:node",
|
||||
],
|
||||
)
|
Loading…
Reference in New Issue