Skip to content

Releases: testing-library/angular-testing-library

v13.4.0

10 Mar 17:20
83c323f
Compare
Choose a tag to compare

13.4.0 (2023-03-10)

Features

  • support ngOnChanges with correct simpleChange object within rerender (#366) (83c323f), closes #365

v13.3.0

23 Feb 08:27
dc4c22f
Compare
Choose a tag to compare

13.3.0 (2023-02-23)

Features

  • deprecate change and changeInput in favor of rerender (#371) (dc4c22f)

v13.2.1

20 Feb 11:28
2006502
Compare
Choose a tag to compare

13.2.1 (2023-02-20)

Bug Fixes

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)