angular/packages/core/schematics/test
cexbrayat 03a2acd2a3 fix(core): properly remove imports in the afterRender phase migration (#56524)
Before this commit, the migration was removing the `AfterRenderPhase` enum from the imports but not the comma, resulting in invalid code:

ts
```
import { , Directive, afterRender } from '@angular/core';
```

This commit fixes this by using `updateNamedImports` and `replaceNode` instead of `removeNode`.

After:

ts
```
import { Directive, afterRender } from '@angular/core';
```

PR Close #56524
2024-06-20 08:50:28 -07:00
..
google3 refactor: migrate core to prettier formatting (#55488) 2024-04-29 09:49:19 -07:00
after_render_phase_spec.ts fix(core): properly remove imports in the afterRender phase migration (#56524) 2024-06-20 08:50:28 -07:00
all-migrations.spec.ts refactor: migrate core to prettier formatting (#55488) 2024-04-29 09:49:19 -07:00
BUILD.bazel feat(core): Add a schematic to migrate afterRender phase flag (#55648) 2024-06-10 13:53:39 -07:00
control_flow_migration_spec.ts fix(migrations): do not generate aliased variables with the same name (#56154) 2024-05-30 14:54:36 +00:00
helpers.ts refactor: migrate core to prettier formatting (#55488) 2024-04-29 09:49:19 -07:00
http_providers_spec.ts fix(core): Do not migrate HttpClientModule imports on components. (#56067) 2024-05-30 14:55:06 +00:00
invalid_two_way_bindings_spec.ts refactor: migrate core to prettier formatting (#55488) 2024-04-29 09:49:19 -07:00
project_tsconfig_paths_spec.ts refactor: migrate core to prettier formatting (#55488) 2024-04-29 09:49:19 -07:00
standalone_migration_spec.ts refactor: migrate core to prettier formatting (#55488) 2024-04-29 09:49:19 -07:00