mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
d3b0bb1d8c
`relative-link.pipe.spec.ts` and `is-active-navigation-item.pipe.spec.ts` arrived with this package's BUILD file in #57132, but no test target came with them and `lib` excludes `**/*.spec.ts`, so nothing has ever compiled them. `bazel query` reports both as not declared in the package. They pass unmodified. `getRelativeUrl` has no other coverage in the repo, and both pipes are used by the search dialog, the navigation list and the not found page.
50 lines
901 B
Python
50 lines
901 B
Python
load("//adev/shared-docs:defaults.bzl", "ng_project", "ts_project", "zoneless_web_test_suite")
|
|
|
|
package(default_visibility = ["//visibility:private"])
|
|
|
|
ts_project(
|
|
name = "pipes",
|
|
srcs = [
|
|
"index.ts",
|
|
],
|
|
visibility = ["//adev/shared-docs:__subpackages__"],
|
|
deps = [
|
|
":lib",
|
|
],
|
|
)
|
|
|
|
ng_project(
|
|
name = "lib",
|
|
srcs = glob(
|
|
[
|
|
"**/*.ts",
|
|
],
|
|
exclude = [
|
|
"index.ts",
|
|
"**/*.spec.ts",
|
|
],
|
|
),
|
|
deps = [
|
|
"//adev:node_modules/@angular/core",
|
|
"//adev/shared-docs/interfaces",
|
|
"//adev/shared-docs/utils",
|
|
],
|
|
)
|
|
|
|
ts_project(
|
|
name = "test_lib",
|
|
testonly = True,
|
|
srcs = glob(
|
|
["*.spec.ts"],
|
|
),
|
|
deps = [
|
|
":lib",
|
|
"//adev/shared-docs/interfaces",
|
|
],
|
|
)
|
|
|
|
zoneless_web_test_suite(
|
|
name = "test",
|
|
deps = [":test_lib"],
|
|
)
|