angular-docs-cn/packages/core/schematics/test
Paul Gschwendtner d751ca7596 fix(core): renderer-to-renderer2 migration not migrating methods (#33571)
The `renderer-to-renderer2` migration currently does not work
properly in v9 because the migration relies on the type checker
for detecting references to `Renderer` from `@angular/core`.

This is contradictory since the `Renderer` is no longer
exported in v9 `@angular/core`. In order to make sure that
the migration still works in v9, and that we can rely on the
type checker for the best possible detection, we take advantage
of module augmentation and in-memory add the `Renderer` export
to the `@angular/core` module.

PR Close #33571
2019-11-05 22:05:17 +00:00
..
google3 fix(core): missing-injectable migration should not migrate providers with "useExisting" (#33286) 2019-10-25 13:26:00 -07:00
BUILD.bazel feat(core): add ModuleWithProviders generic type migration (#33217) 2019-10-21 15:53:28 -04:00
dynamic_queries_migration_spec.ts refactor: re-enable dynamic queries migration (#32992) 2019-10-04 13:54:09 -07:00
helpers.ts feat(core): add undecorated classes migration schematic (#31650) 2019-08-13 14:40:52 -07:00
line_mappings_spec.ts feat(core): template-var-assignment update schematic (#29608) 2019-04-02 15:47:32 -07:00
missing_injectable_migration_spec.ts fix(core): missing-injectable migration should not update type definitions (#33286) 2019-10-25 13:26:00 -07:00
module_with_providers_migration_spec.ts feat(core): add ModuleWithProviders generic type migration (#33217) 2019-10-21 15:53:28 -04:00
move_document_migration_spec.ts test(core): remove "enableIvy" compiler option from migration tests (#32954) 2019-10-02 14:53:41 -07:00
postinstall_ngcc_spec.ts feat(core): add postinstall ngcc migration (#32999) 2019-10-15 17:54:38 +00:00
project_tsconfig_paths_spec.ts refactor(core): migrations should parse cli workspace config as json5 (#30582) 2019-05-21 17:26:22 -07:00
renderer_to_renderer2_migration_spec.ts fix(core): renderer-to-renderer2 migration not migrating methods (#33571) 2019-11-05 22:05:17 +00:00
static_queries_migration_template_spec.ts refactor(core): static-queries migration should never use ngtsc (#32954) 2019-10-02 14:53:41 -07:00
static_queries_migration_usage_spec.ts test(core): remove "enableIvy" compiler option from migration tests (#32954) 2019-10-02 14:53:41 -07:00
template_var_assignment_migration_spec.ts test(core): remove "enableIvy" compiler option from migration tests (#32954) 2019-10-02 14:53:41 -07:00
undecorated_classes_with_decorated_fields_migration_spec.ts test: clean up explicit dynamic query usages (#33015) 2019-10-17 16:10:10 -04:00
undecorated_classes_with_di_migration_spec.ts fix(core): undecorated-classes-with-di migration should report config errors (#33567) 2019-11-05 21:06:47 +00:00