You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Initializer APIs (input, output, queries) not integrating with TestBed.override in a jit & aot mix #57944
TestBed.overrideComponent seems to not work well with signal inputs, queries, output, or other non-decorator APIs.
That is because the setClassMetadata calls (generated for JIT) are used to re-compile the component with the overrides — but there is no decorator for the e.g. input() calls, hence this metadata is lost.
Options I could see:
Smartly merging directly with the original component metadata in TestBed.
Will be hard to detect output as it's non-distinguishable from decorator outputs.
I guess, we could fully re-use inputs, queries etc. metadata instead of relying on prop decorators..?
Adding synthetic prop decorators to setClassMetadata.
Would be great to re-use the JIT transforms.. but those need an import manager; so needs a bit of refactoring!
Note: I do think this may not be a problem in Angular CLI applications because full tests are compiled with JIT transforms in place! Here it fails because we mix AOT targets with JIT targets; without any JIT transforms
changed the title [-]Initializer APIs (input, output, queries) not integrating with `TestBed.override`[/-][+]Initializer APIs (input, output, queries) not integrating with `TestBed.override` in a jit & aot mix[/+]on Sep 24, 2024
Activity
[-]Initializer APIs (input, output, queries) not integrating with `TestBed.override`[/-][+]Initializer APIs (input, output, queries) not integrating with `TestBed.override` in a jit & aot mix[/+]12 remaining items
fix(compiler-cli): capture metadata for undecorated fields
fix(compiler-cli): capture metadata for undecorated fields
fix(compiler-cli): capture metadata for undecorated fields
fix(compiler-cli): capture metadata for undecorated fields (#63904)
fix(compiler-cli): capture metadata for undecorated fields (angular#6…
fix(compiler-cli): capture metadata for undecorated fields
fix(compiler-cli): capture metadata for undecorated fields
aravindsrj commentedon Oct 9, 2025
Is this issue closed? #63957 still is open.
crisbeto commentedon Oct 9, 2025
We had to roll it back, but I'm in the process of re-submitting it.
fix(compiler-cli): capture metadata for undecorated fields (#63957)
fix(compiler-cli): capture metadata for undecorated fields (angular#6…
fix(compiler-cli): capture metadata for undecorated fields (#63957) (#…
angular-automatic-lock-bot commentedon Nov 9, 2025
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.