mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
42 lines
877 B
Text
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"],
|
|
)
|