Files
angular/packages/core/test/authoring/BUILD.bazel
Pawel Kozlowski 616df433c9 test(core): support type tests for different authoring functions (#53829)
The new type testing infrastructure was introduced for the input-as-signals
authoring functions. This commit modifies this infrastructure to make it more
generic and support queries-as-signals.

PR Close #53829
2024-01-17 09:15:14 -08:00

54 lines
1.0 KiB
Python

load("//tools:defaults.bzl", "jasmine_node_test", "karma_web_test_suite", "nodejs_test", "ts_library")
ts_library(
name = "signal_authoring_signature_test_lib",
testonly = True,
srcs = [
"signal_input_signature_test.ts",
"signal_queries_signature_test.ts",
],
deps = ["//packages/core"],
)
ts_library(
name = "type_tester_lib",
testonly = True,
srcs = ["type_tester.ts"],
deps = [
"@npm//typescript",
],
)
nodejs_test(
name = "type_test",
data = [
":signal_authoring_signature_test_lib",
":type_tester_lib",
],
entry_point = ":type_tester.ts",
)
ts_library(
name = "test_lib",
testonly = True,
srcs = ["input_signal_spec.ts"],
deps = [
"//packages/core",
"//packages/core/primitives/signals",
"//packages/core/testing",
],
)
jasmine_node_test(
name = "test",
bootstrap = ["//tools/testing:node"],
deps = [
":test_lib",
],
)
karma_web_test_suite(
name = "test_web",
deps = [":test_lib"],
)