mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Kristiyan Kostadinov
parent
c235ecef8a
commit
d3b0bb1d8c
@@ -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"],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user