Releases: testing-library/angular-testing-library
Releases · testing-library/angular-testing-library
v11.0.0-beta.4
11.0.0-beta.4 (2021-11-27)
Bug Fixes
- query params with same keys are added to the collection (110e135)
- wrapper component selector is appended with
atl-
(1cd6fa1)
BREAKING CHANGES
- Query params on a router link with the same key are no longer overwriting the last value.
Instead they are added to an array.
v11.0.0-beta.3
11.0.0-beta.3 (2021-11-26)
Features
BREAKING CHANGES
- The template property is removed from the render options.
Instead, you can pass it as the first argument of `render.
BEFORE:
await render(InputOutputComponent, {
// 👇 this is deprecated
template: '<app-fixture [value]="47" (sendValue)="sendValue($event)" (clicked)="clicked()"></app-fixture>',
componentProperties: {
sendValue: sendSpy,
},
});
AFTER:
// 👇 Move the template in the first argument
await render('<app-fixture [value]="47" (sendValue)="sendValue($event)" (clicked)="clicked()"></app-fixture>', {
// 👇 Add the component to declarations
declarations: [InputOutputComponent],
componentProperties: {
sendValue: sendSpy,
},
});
v11.0.0-beta.2
11.0.0-beta.2 (2021-11-24)
Features
BREAKING CHANGES
rerender
has been renamed tochange
.
Thechange
method keeps the current fixture intact and invokesngOnChanges
.
The new rerender
method destroys the current component and creates a new instance with the updated properties.
BEFORE:
const { rerender } = render(...)
rerender({...})
AFTER:
const { change } = render(...)
change({...})
v11.0.0-beta.1
11.0.0-beta.1 (2021-11-23)
chore
BREAKING CHANGES
- This version requires the following versions:
- Angular v13