test(docs-infra): run the orphaned shared-docs pipes specs

`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.
This commit is contained in:
Kam
2026-09-06 00:41:19 +03:00
committed by Kristiyan Kostadinov
parent c235ecef8a
commit d3b0bb1d8c
+18 -1
View File
@@ -1,4 +1,4 @@
load("//adev/shared-docs:defaults.bzl", "ng_project", "ts_project")
load("//adev/shared-docs:defaults.bzl", "ng_project", "ts_project", "zoneless_web_test_suite")
package(default_visibility = ["//visibility:private"])
@@ -30,3 +30,20 @@ ng_project(
"//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"],
)