angular/adev/shared-docs/pipeline/guides/testing/BUILD.bazel
Joey Perrott 84b66f3b04 build: migrate adev shared-docs package to use ts_project (#61217)
Migrate the build rules for shared docs to use ts_project

PR Close #61217
2025-05-09 16:32:06 +00:00

42 lines
877 B
Text

load("//tools:defaults.bzl", "jasmine_node_test")
load("//tools:defaults2.bzl", "ts_project")
ts_project(
name = "unit_test_lib",
testonly = True,
srcs = glob([
"**/*.spec.mts",
]),
tsconfig = "//adev/shared-docs:tsconfig_test",
deps = [
"//:node_modules/@bazel/runfiles",
"//:node_modules/@types/jsdom",
"//:node_modules/jsdom",
"//adev/shared-docs/pipeline/guides:guides_rjs",
],
)
ts_project(
name = "bootstrap",
testonly = True,
srcs = [
"bootstrap.init.mts",
],
tsconfig = "//adev/shared-docs:tsconfig_test",
)
jasmine_node_test(
name = "unit_tests",
bootstrap = [
":bootstrap",
],
data = [
"@npm//jsdom",
] + glob([
"**/*.html",
"**/*.md",
"**/*.svg",
"**/*.ts",
]),
deps = [":unit_test_lib"],
)