diff --git a/projects/testing-library/src/lib/testing-library.ts b/projects/testing-library/src/lib/testing-library.ts index 98d0a2da..199f5200 100644 --- a/projects/testing-library/src/lib/testing-library.ts +++ b/projects/testing-library/src/lib/testing-library.ts @@ -242,6 +242,10 @@ function setComponentProperties( Object.defineProperty(fixture.componentInstance, key, { get: descriptor?.get || defaultGetter, set: extendedSetter, + // Allow the property to be defined again later. + // This happens when the component properties are updated after initial render. + // For Jest this is `true` by default, for Karma and a real browser the default is `false` + configurable: true, }); descriptor?.set?.call(fixture.componentInstance, _value);