angular-cn/packages/core/schematics/test
Paul Gschwendtner d43c30688a fix(core): avoid migration error when non-existent symbol is imported (#36367)
In rare cases a project with configured `rootDirs` that has imports to
non-existent identifiers could fail in the migration.

This happens because based on the application code, the migration could
end up trying to resolve the `ts.Symbol` of such non-existent
identifiers. This isn't a problem usually, but due to a upstream bug
in the TypeScript compiler, a runtime error is thrown.

This is because TypeScript is unable to compute a relative path from the
originating source file to the imported source file which _should_
provide the non-existent identifier. An issue for this has been reported
upstream: https://github.com/microsoft/TypeScript/issues/37731. The
issue only surfaces since our migrations don't provide an absolute base
path that is used for resolving the root directories.

To fix this, we ensure that we never use relative paths when parsing
tsconfig files. More details can be found in the TS issue.

Fixes #36346.

PR Close #36367
2020-04-06 13:21:54 -07:00
..
google3 fix(core): undecorated-classes-with-decorated-fields migration does not decorate derived classes (#35339) 2020-04-02 10:51:48 -07:00
BUILD.bazel fix(core): remove ngcc postinstall migration (#33727) 2019-11-12 14:03:48 -08:00
all-migrations.spec.ts fix(core): avoid migration error when non-existent symbol is imported (#36367) 2020-04-06 13:21:54 -07:00
dynamic_queries_migration_spec.ts test(core): fix schematics calls to run synchronously (#34364) 2019-12-12 13:14:29 -08: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 test(core): fix schematics calls to run synchronously (#34364) 2019-12-12 13:14:29 -08:00
module_with_providers_migration_spec.ts test(core): fix schematics calls to run synchronously (#34364) 2019-12-12 13:14:29 -08:00
move_document_migration_spec.ts test(core): fix schematics calls to run synchronously (#34364) 2019-12-12 13:14:29 -08: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 test(core): fix schematics calls to run synchronously (#34364) 2019-12-12 13:14:29 -08:00
static_queries_migration_usage_spec.ts test(core): fix schematics calls to run synchronously (#34364) 2019-12-12 13:14:29 -08: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 feat(core): undecorated-classes migration should handle derived abstract classes (#35339) 2020-04-02 10:51:49 -07:00
undecorated_classes_with_di_migration_spec.ts fix(core): undecorated-classes-with-di migration should handle libraries generated with CLI versions past v6.2.0 (#35824) 2020-03-06 12:40:18 -05:00