test: add integration test for undecorated-classes-with-decorated-fields migration (#35339)

We don't have an integration test for the `undecorated-classes-with-decorated-fields
migration. For consistency and to cover for the latest changes, we add
it to the `ng update` integration test.

PR Close #35339
This commit is contained in:
Paul Gschwendtner
2020-02-11 18:03:13 +01:00
committed by Kara Erickson
parent 5ff5a11509
commit 78211c42ea
4 changed files with 205 additions and 102 deletions

View File

@ -78,8 +78,7 @@ export class UndecoratedClassesWithDecoratedFieldsTransform {
for (const {node: baseClass} of findBaseClassDeclarations(node, this.typeChecker)) {
// If the undecorated class inherits from a decorated directive, skip the current class.
// We do this because undecorated classes which inherit from directives/components are
// handled as part of the the `undecorated-classes-with-di` migration which copies
// inherited metadata.
// handled in the `undecorated-classes-with-di` migration which copies inherited metadata.
if (decoratedDirectives.has(baseClass)) {
break;
} else if (undecoratedDirectives.has(baseClass)) {