diff --git a/packages/transformer/src/test/IModelTransformerUtils.ts b/packages/transformer/src/test/IModelTransformerUtils.ts index 441394bd..988a23a9 100644 --- a/packages/transformer/src/test/IModelTransformerUtils.ts +++ b/packages/transformer/src/test/IModelTransformerUtils.ts @@ -301,11 +301,16 @@ export async function assertIdentityTransformation( mappedRelationTargetInTargetId ); } else if (!propChangesAllowed) { - // kept for conditional breakpoints - const _propEq = TestUtils.advancedDeepEqual(targetElem.asAny[propName], sourceElem.asAny[propName]); - expect(targetElem.asAny[propName]).to.deep.advancedEqual( - sourceElem.asAny[propName] - ); + try { + expect( + (targetElem as any)[propName], + `${targetElem.id}[${propName}] didn't match ${sourceElem.id}[${propName}]` + ).to.deep.advancedEqual((sourceElem as any)[propName]); + } catch (err) { + // for debugging broken tests + debugger; // eslint-disable-line no-debugger + throw err; + } } } const quickClone = (obj: any) => JSON.parse(JSON.stringify(obj));