53 lines
1.0 KiB
Python
53 lines
1.0 KiB
Python
|
package(default_visibility = ["//visibility:public"])
|
||
|
|
||
|
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library", "ts_web_test_suite")
|
||
|
|
||
|
ts_library(
|
||
|
name = "view_lib",
|
||
|
testonly = True,
|
||
|
srcs = glob(
|
||
|
["**/*.ts"],
|
||
|
),
|
||
|
deps = [
|
||
|
"//packages/core",
|
||
|
"//packages/core/testing",
|
||
|
"//packages/platform-browser",
|
||
|
"//packages/private/testing",
|
||
|
],
|
||
|
)
|
||
|
|
||
|
ts_library(
|
||
|
name = "view_node_only_lib",
|
||
|
testonly = True,
|
||
|
srcs = glob(["**/*_node_only_spec.ts"]),
|
||
|
deps = [
|
||
|
":view_lib",
|
||
|
"//packages/core",
|
||
|
"//packages/core/testing",
|
||
|
"//packages/private/testing",
|
||
|
],
|
||
|
)
|
||
|
|
||
|
jasmine_node_test(
|
||
|
name = "view",
|
||
|
bootstrap = ["angular/tools/testing/init_node_spec.js"],
|
||
|
tags = [
|
||
|
"no-ivy-aot",
|
||
|
],
|
||
|
deps = [
|
||
|
":view_lib",
|
||
|
":view_node_only_lib",
|
||
|
"//tools/testing:node",
|
||
|
],
|
||
|
)
|
||
|
|
||
|
ts_web_test_suite(
|
||
|
name = "view_web",
|
||
|
tags = [
|
||
|
"no-ivy-aot",
|
||
|
],
|
||
|
deps = [
|
||
|
":view_lib",
|
||
|
],
|
||
|
)
|