Skip to content

refactor(core): Private option to rethrow ApplicationRef.tick errors in tests - #57153

Closed
atscott wants to merge 1 commit into
angular:mainfrom
atscott:rethrowerrorsforzonetests
Closed

atscott wants to merge 1 commit into
angular:mainfrom
atscott:rethrowerrorsforzonetests

Conversation

@atscott

@atscott atscott commented Jul 26, 2024 •

Copy link
Copy Markdown
Contributor

This creates a private option that can be used internally while we
migrate this to the default and only behavior. ~200 tests in TGP have errors
that are being swallowed (console.log) and not causing the test to fail.
We can first explicitly opt those out, flip the default internally, then
"fix" them by adding expect...toThrow.

@atscott atscott added the target: patch This PR is targeted for the next patch release label Jul 26, 2024
@angular-robot angular-robot Bot added the area: core Issues related to the framework runtime label Jul 26, 2024
@ngbot ngbot Bot added this to the Backlog milestone Jul 26, 2024
…in tests

This creates a private option that can be used internally while we
migrate this to the default and only behavior. ~200 tests in TGP have errors
that are being swallowed (console.log) and not causing the test to fail.
We can first explicitly opt those out, flip the default internally, then
"fix" them by adding expect...toThrow.
@atscott atscott added action: merge The PR is ready for merge by the caretaker merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note labels Jul 30, 2024
@atscott

atscott commented Jul 30, 2024

Copy link
Copy Markdown
Contributor Author

caretaker note: presubmit ran already before rebase. I reused the CL for the follow-up internal changes to make this the default so I can't rerun a new presubmit. If you'd like another presubmit to be safe, please kick off another one.

thePunderWoman pushed a commit that referenced this pull request Jul 30, 2024
…in tests (#57153)

This creates a private option that can be used internally while we
migrate this to the default and only behavior. ~200 tests in TGP have errors
that are being swallowed (console.log) and not causing the test to fail.
We can first explicitly opt those out, flip the default internally, then
"fix" them by adding expect...toThrow.

PR Close #57153
@thePunderWoman

Copy link
Copy Markdown
Contributor

This PR was merged into the repository by commit b3836c2.

The changes were merged into the following branches: main, 18.1.x

@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 Aug 30, 2024
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: core Issues related to the framework runtime 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.

3 participants