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",
|
|
|
|
tags = [
|
|
|
|
"no-ivy-aot",
|
|
|
|
],
|
2019-12-28 21:14:36 -05:00
|
|
|
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
2018-12-13 05:02:59 -05:00
|
|
|
deps = [
|
|
|
|
":view_lib",
|
|
|
|
":view_node_only_lib",
|
2020-01-10 16:39:37 -05:00
|
|
|
"//tools/testing:node",
|
2019-12-28 21:14:36 -05:00
|
|
|
"//tools/testing:node_es5",
|
2018-12-13 05:02:59 -05:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
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",
|
|
|
|
],
|
|
|
|
)
|