Releases: testing-library/angular-testing-library
Releases · testing-library/angular-testing-library
v13.2.0
v13.1.0
v13.0.2
v13.0.1
v13.0.0
13.0.0 (2022-12-14)
Features
- release v13 (#327) (6ae1363), closes #324 #325 #318 #326 #323 #328 #329 #330 #338 #339 #341 #342 #343
BREAKING CHANGES
- The render property ɵcomponentImports is not experimental anymore, and is renamed to componentImports
BEFORE:
render(ParentComponent, {
ɵcomponentImports: [ChildComponent],
});
AFTER:
render(ParentComponent, {
componentImports: [ChildComponent],
});
- This change is made to have the same behavior as the run time behavior.
BEFORE:
The ngOnChanges
lifecycle is always invoked when a component is rendered.
AFTER:
The ngOnChanges
lifecycle is only invoked if a component is rendered with componentProperties
.
rerender
expects properties to be wrapped in an object containingcomponentProperties
(orcomponentInputs
andcomponentOutputs
to have a more fine-grained control).
BEFORE:
await render(PersonComponent, {
componentProperties: {
name: 'Sarah'
}
});
await rerender({ name: 'Sarah 2' });
AFTER:
await render(PersonComponent, {
componentProperties: {
name: 'Sarah'
}
});
await rerender({
componentProperties: {
name: 'Sarah 2'
}
});
- BEFORE:
The minimum version of Angular is v14.0.0
AFTER:
The minimum version of Angular is v15.0.0
- The config property detectChanges is renamed to detectChangesOnRender.
BEFORE:
const component = await render(AppComponent, {
detectChanges: false
});
AFTER:
const component = await render(AppComponent, {
detectChangesOnRender: false
});