Skip to content

refactor(compiler-cli): Add test to document use-case for invalid pipe argument nullish coallesce - #43419

Closed
atscott wants to merge 2 commits into
angular:masterfrom
atscott:testpipenullish
Closed

atscott wants to merge 2 commits into
angular:masterfrom
atscott:testpipenullish

Conversation

@atscott

@atscott atscott commented Sep 10, 2021

Copy link
Copy Markdown
Contributor

Adds a test to the nullish coalescing diagnostic check to serve as
self-documentation on how it works with nullish coalescing on pipes that
are often misconfigured.

This also removes that non null assertion operator, which is incorrect
because there are situations where a symbol cannot be retrieved.

@atscott atscott added target: patch This PR is targeted for the next patch release area: compiler Issues related to `ngc`, Angular's template compiler labels Sep 10, 2021
@atscott
atscott requested a review from alxhub September 10, 2021 15:26
@ngbot ngbot Bot modified the milestone: Backlog Sep 10, 2021
@google-cla google-cla Bot added the cla: yes label Sep 10, 2021

@JoostK JoostK left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent tests! If only CI was also happy :-)

@atscott atscott changed the title refactor(compiler-cli): Add test to document use-case for invalid pipe arugment nullish coallesce refactor(compiler-cli): Add test to document use-case for invalid pipe argument nullish coallesce Sep 20, 2021
…e argument nullish coallesce

Adds a test to the nullish coalescing diagnostic check to serve as
self-documentation on how it works with nullish coalescing on pipes that
are often misconfigured.

This also removes that non null assertion operator, which is incorrect
because there _are_ situations where a symbol cannot be retrieved.
The test files simply named `spec.ts` are hard to find when searching
for files by name.
@atscott atscott added the action: merge The PR is ready for merge by the caretaker label Sep 21, 2021
@atscott
atscott removed the request for review from alxhub September 21, 2021 22:41
@atscott atscott added the merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note label Sep 21, 2021
jessicajaniuk pushed a commit that referenced this pull request Sep 22, 2021
The test files simply named `spec.ts` are hard to find when searching
for files by name.

PR Close #43419
jessicajaniuk pushed a commit that referenced this pull request Sep 22, 2021
…e argument nullish coallesce (#43419)

Adds a test to the nullish coalescing diagnostic check to serve as
self-documentation on how it works with nullish coalescing on pipes that
are often misconfigured.

This also removes that non null assertion operator, which is incorrect
because there _are_ situations where a symbol cannot be retrieved.

PR Close #43419
jessicajaniuk pushed a commit that referenced this pull request Sep 22, 2021
The test files simply named `spec.ts` are hard to find when searching
for files by name.

PR Close #43419
@angular-automatic-lock-bot

Copy link
Copy Markdown

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 Oct 23, 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 area: compiler Issues related to `ngc`, Angular's template compiler cla: yes merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note 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