angular/packages/core/schematics/test
Ryan Russell 0162ceb427 fix(core): inject migration should treat @Attribute as optional (#60916)
The @Attribute decorator will inject null if a host attribute
is missing, but `inject(new HostAttributeToken(...))` will throw
a no provider error. We should set {optional: true} when migrating
an @Attribute decorator. Also allow nonNullableOptional to add
`!` to those declarations.

PR Close #60916
2025-04-22 10:42:58 +02:00
..
google3 refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
all-migrations.spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
BUILD.bazel refactor(core): run the control flow migration during ng update (#60492) 2025-03-28 15:46:41 +00:00
cleanup_unused_imports_migration_spec.ts fix(migrations): avoid applying the same replacements twice when cleaning up unused imports (#59656) 2025-01-22 07:57:38 -08:00
control_flow_migration_spec.ts refactor(core): run the control flow migration during ng update (#60492) 2025-03-28 15:46:41 +00:00
document_core_spec.ts refactor(migrations): add a migration to move DOCUMENT imports (#60663) 2025-04-01 12:48:06 +00:00
helpers.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
inject_flags_spec.ts fix(core): add migration away from InjectFlags (#60318) 2025-03-11 11:33:09 -07:00
inject_migration_spec.ts fix(core): inject migration should treat @Attribute as optional (#60916) 2025-04-22 10:42:58 +02:00
output_migration_spec.ts feat(migrations): expose output as function migration (#58299) 2024-10-22 07:41:41 -07:00
project_tsconfig_paths_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
queries_migration_spec.ts fix(migrations): incorrect stats when migrating queries with best effort mode (#59463) 2025-01-10 11:52:13 -05:00
self_closing_tags_migration_spec.ts refactor(migrations): Don't migrate twice the same file on the self-closing tag migration (#60065) 2025-02-28 16:27:40 +00:00
signal_input_migration_spec.ts fix(migrations): incorrect stats when migrating queries with best effort mode (#59463) 2025-01-10 11:52:13 -05:00
signals_migration_spec.ts fix(migrations): add outputs migration to combined shorthand (#58318) 2024-10-23 08:02:50 -07:00
standalone_migration_spec.ts fix(migrations): replace removed NgModules in tests with their exports (#58627) 2024-11-13 18:04:31 +00:00
standalone_routes_spec.ts fix(core): correctly perform lazy routes migration for components with additional decorators (#58796) 2024-11-21 16:43:30 +00:00
test_bed_get_spec.ts refactor(migrations): add migration for TestBed.get (#60414) 2025-03-19 15:52:26 +01:00