We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d0a905 commit dbd468fCopy full SHA for dbd468f
projects/testing-library/src/lib/testing-library.ts
@@ -242,6 +242,10 @@ function setComponentProperties<SutType>(
242
Object.defineProperty(fixture.componentInstance, key, {
243
get: descriptor?.get || defaultGetter,
244
set: extendedSetter,
245
+ // Allow the property to be defined again later.
246
+ // This happens when the component properties are updated after initial render.
247
+ // For Jest this is `true` by default, for Karma and a real browser the default is `false`
248
+ configurable: true,
249
});
250
251
descriptor?.set?.call(fixture.componentInstance, _value);
0 commit comments