Skip to content

Releases: testing-library/angular-testing-library

v13.2.0

18 Feb 17:33
d3407ca
Compare
Choose a tag to compare

13.2.0 (2023-02-18)

Features

  • add initialRoute parameter to avoid resolver issues with using a default route (#367) (d3407ca)

v13.1.0

13 Jan 15:01
072e79f
Compare
Choose a tag to compare

13.1.0 (2023-01-13)

Features

v13.0.2

17 Dec 10:30
5b9fa84
Compare
Choose a tag to compare

13.0.2 (2022-12-17)

Bug Fixes

v13.0.1

15 Dec 19:44
586fd83
Compare
Choose a tag to compare

13.0.1 (2022-12-15)

Bug Fixes

v13.0.0

14 Dec 12:28
6ae1363
Compare
Choose a tag to compare

13.0.0 (2022-12-14)

Features

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 containing componentProperties (or componentInputs and componentOutputs 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
});

v12.3.0

10 Dec 16:38
63c27e2
Compare
Choose a tag to compare

12.3.0 (2022-12-10)

Features

  • deprecate detectChanges in favor of detectChangesOnRender (#340) (63c27e2)

v12.2.2

05 Dec 16:41
65cccbe
Compare
Choose a tag to compare

12.2.2 (2022-12-05)

Bug Fixes

  • disable updateBuildableProjectDepsInPackageJson (65cccbe)

v12.2.1

03 Dec 20:31
2b357d1
Compare
Choose a tag to compare

12.2.1 (2022-12-03)

Bug Fixes

v12.2.0

28 Nov 16:11
6e951ad
Compare
Choose a tag to compare

12.2.0 (2022-11-28)

Features

  • childComponentOverrides property to override nested child providers (#332) (6e951ad)

v13.0.0-beta.8

25 Nov 17:57
5b848f5
Compare
Choose a tag to compare
v13.0.0-beta.8 Pre-release
Pre-release

13.0.0-beta.8 (2022-11-25)

Bug Fixes

  • angular peer dependencies allow v15 (5b848f5)