Files
angular/packages/core/test/authoring/BUILD.bazel
Kristiyan Kostadinov be4620c8d0 test(core): add type tests for ɵunwrapWritableSignal (#54387)
Getting the typing for `ɵunwrapWritableSignal` just right was tricky so these changes add some tests to ensure that we don't regress.

Also reworks the type tester a bit to make it easier to find where to add new test files.

PR Close #54387
2024-02-12 11:01:52 -08:00

59 lines
1.2 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_model_signature_test.ts",
"signal_queries_signature_test.ts",
"unwrap_writable_signal_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",
"model_input_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"],
)