angular-docs-cn/packages/core/test/bundling/injection/BUILD.bazel

65 lines
1.2 KiB
Python

load("//tools/symbol-extractor:index.bzl", "js_expected_symbol_test")
load("//tools:defaults.bzl", "jasmine_node_test", "ng_rollup_bundle", "ts_library")
package(default_visibility = ["//visibility:public"])
ts_library(
name = "injection",
srcs = [
"index.ts",
"usage.ts",
],
tags = [
"ivy-only",
],
deps = [
"//packages/core",
],
)
ng_rollup_bundle(
name = "bundle",
entry_point = ":index.ts",
tags = [
"ivy-only",
],
deps = [
":injection",
"//packages/core",
"@npm//rxjs",
],
)
ts_library(
name = "test_lib",
testonly = True,
srcs = glob(["*_spec.ts"]),
tags = [
"ivy-only",
],
deps = [
":injection",
"//packages:types",
"//packages/compiler",
"//packages/core/testing",
"//packages/private/testing",
],
)
jasmine_node_test(
name = "test",
tags = [
"ivy-only",
],
deps = [":test_lib"],
)
js_expected_symbol_test(
name = "symbol_test",
src = ":bundle.min_debug.js",
golden = ":bundle.golden_symbols.json",
tags = [
"ivy-only",
],
)