2019-11-13 12:08:38 -05:00
|
|
|
load("//tools:defaults.bzl", "jasmine_node_test", "karma_web_test_suite", "ts_library")
|
2018-12-13 05:02:59 -05:00
|
|
|
|
2019-01-16 04:19:01 -05:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
2018-12-13 05:02:59 -05:00
|
|
|
ts_library(
|
|
|
|
name = "view_lib",
|
|
|
|
testonly = True,
|
|
|
|
srcs = glob(
|
|
|
|
["**/*.ts"],
|
|
|
|
),
|
|
|
|
deps = [
|
2019-08-22 22:16:25 -04:00
|
|
|
"//packages/common",
|
2018-12-13 05:02:59 -05:00
|
|
|
"//packages/core",
|
2019-01-09 16:49:16 -05:00
|
|
|
"//packages/core/src/di/interface",
|
|
|
|
"//packages/core/src/interface",
|
|
|
|
"//packages/core/src/util",
|
2018-12-13 05:02:59 -05:00
|
|
|
"//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",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2019-11-13 12:08:38 -05:00
|
|
|
karma_web_test_suite(
|
2018-12-13 05:02:59 -05:00
|
|
|
name = "view_web",
|
|
|
|
tags = [
|
|
|
|
"no-ivy-aot",
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
":view_lib",
|
|
|
|
],
|
|
|
|
)
|