Skip to content

Releases: testing-library/angular-testing-library

v11.0.0-beta.4

27 Nov 08:34
Compare
Choose a tag to compare
v11.0.0-beta.4 Pre-release
Pre-release

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

26 Nov 20:54
4c81ed9
Compare
Choose a tag to compare
v11.0.0-beta.3 Pre-release
Pre-release

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

24 Nov 20:46
0e5e3c7
Compare
Choose a tag to compare
v11.0.0-beta.2 Pre-release
Pre-release

11.0.0-beta.2 (2021-11-24)

Features

BREAKING CHANGES

  • rerender has been renamed to change.
    The change method keeps the current fixture intact and invokes ngOnChanges.

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

23 Nov 16:46
Compare
Choose a tag to compare
v11.0.0-beta.1 Pre-release
Pre-release

11.0.0-beta.1 (2021-11-23)

chore

BREAKING CHANGES

  • This version requires the following versions:
  • Angular v13

v10.11.1

17 Nov 13:22
afd0de9
Compare
Choose a tag to compare

10.11.1 (2021-11-17)

Bug Fixes

  • patch within queries to invoke a change detection cycle (#259) (afd0de9)

v10.11.0

30 Jul 11:19
dca7edd
Compare
Choose a tag to compare

10.11.0 (2021-07-30)

Features

v10.10.0

15 Jul 14:00
fa34bdd
Compare
Choose a tag to compare

10.10.0 (2021-07-15)

Features

v10.9.2

06 Jul 18:29
0cbd0fb
Compare
Choose a tag to compare

10.9.2 (2021-07-06)

Bug Fixes

  • invoke change detection after callback in waitForElementToBeRemoved (#236) (0cbd0fb)

v10.9.1

04 Jul 13:48
78646b0
Compare
Choose a tag to compare

10.9.1 (2021-07-04)

Bug Fixes

v10.9.0

30 Jun 12:15
489e135
Compare
Choose a tag to compare

10.9.0 (2021-06-30)

Features