message: fix(ivy): ensure TestBed restores fields to the most original value
  PR Close
diff: @@ -513,9 +513,9 @@ export class R3TestBedCompiler {
  }
  restoreOriginalState(): void {
  - for (const op of this.defCleanupOps) {
  - op.def[op.field] = op.original;
  - }
  + // Process cleanup ops in reverse order so the field's original value is restored correctly (in
  + // case there were multiple overrides for the same field).
  + forEachRight(this.defCleanupOps, (op: CleanupOperation) => { op.def[op.field] = op.original; });
  // Restore initial component/directive/pipe defs
  this.initialNgDefs.forEach(
  (value: [string, PropertyDescriptor | undefined], type: Type<any>) => {
  