angular/packages/core/test/authoring
Paul Gschwendtner 4e2f0b7f0d test(core): add type signature test for signal input API (#53571)
Adds tests that allow us to ensure that the `input` API works as
expected and that resulting return types match our expectations- without
silently regressing in the future, or missing potential edge-cases.

Testing signatures is hard because of covariance and contravariance,
especially when it comes to the different semantics of `ReadT` and
`WriteT` of input signals. We enable reliable testing by validating the
`d.ts` of the "fake directive class". This ensures clear results,
compared to relying on e.g. type assertions that might
accidentally/silently pass due to covariance/contravariance or
biavariance in the type system.

PR Close #53571
2024-01-04 12:07:13 -08:00
..
BUILD.bazel test(core): add type signature test for signal input API (#53571) 2024-01-04 12:07:13 -08:00
signal_input_signature_test.ts test(core): add type signature test for signal input API (#53571) 2024-01-04 12:07:13 -08:00
type_tester.ts test(core): add type signature test for signal input API (#53571) 2024-01-04 12:07:13 -08:00