Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions projects/testing-library/src/lib/testing-library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ function setComponentProperties<SutType>(
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);
Expand Down