Skip to content

Conversation

@clydin
Copy link
Member

@clydin clydin commented Jul 6, 2021

The nativeElement property on a TestBed fixture is of type any. In one of the tests within a new application's spec file, the nativeElement is accessed but not cast to an appropriate type which results in potentially unsafe member access. The nativeElement is now cast as an HTMLElement and allows additional usage to be type checked.

… file

The `nativeElement` property on a `TestBed` fixture is of type `any`. In one of the tests within a new application's spec file, the `nativeElement` is accessed but not cast to an appropriate type which results in potentially unsafe member access. The `nativeElement` is now cast as an `HTMLElement` and allows additional usage to be type checked.
@clydin clydin added the target: patch This PR is targeted for the next patch release label Jul 6, 2021
@google-cla google-cla bot added the cla: yes label Jul 6, 2021
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Jul 7, 2021
@clydin clydin merged commit 5b10d4f into angular:master Jul 7, 2021
@clydin clydin deleted the angular-schematics/unsafe-any-usage branch July 7, 2021 15:15
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Aug 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants