TestBed.createDirective dropped my host component.

The test file came out one line longer.

WITH A HOST COMPONENT
72lines
  • TestHost: one template, a signal per input
  • setup() helper
  • 5 tests
createDirective
73lines
  • no component
  • bindings: [inputBinding(…)] in every test
  • the same 5 tests
HOST COMPONENT STILL NEEDED two copy buttons inside one appCopyGroup, where clicking one resets the other. createDirective builds one empty element with no template around it.
Angular 22.2.3 · Vitest 5.0.5
gdhami.net