Skip to content

Conversation

@atscott
Copy link
Contributor

@atscott atscott commented Jun 18, 2025

…sync

Benefits of auto-ticking mock clocks have been described in other PRs, such as jasmine/jasmine#2042 and sinonjs/fake-timers#509. In short, fakeAsync cannot work when some tasks are required to be truly async, such as XHRs or observers like ResizeObserver. In addition, auto ticking mock clocks can be applied to tests without the tests then needing to update everything to manually flush timers.

@angular-robot angular-robot bot added the area: zones Issues related to zone.js label Jun 18, 2025
@ngbot ngbot bot added this to the Backlog milestone Jun 18, 2025
@atscott atscott added the target: patch This PR is targeted for the next patch release label Jun 18, 2025
@atscott atscott requested a review from alxhub June 20, 2025 18:43
@atscott atscott marked this pull request as ready for review June 20, 2025 18:43
@pullapprove pullapprove bot requested a review from JiaLiPassion June 20, 2025 18:43
@atscott atscott requested a review from alxhub July 16, 2025 16:49
@atscott atscott force-pushed the autoTickFakeAsync branch 6 times, most recently from c75cc25 to b26afad Compare July 16, 2025 19:32
…sync

Benefits of auto-ticking mock clocks have been described in other PRs,
such as jasmine/jasmine#2042 and
sinonjs/fake-timers#509. In short, `fakeAsync`
cannot work when some tasks are required to be truly async, such as XHRs
or observers like ResizeObserver. In addition, auto ticking mock clocks
can be applied to tests without the tests then needing to update
everything to manually flush timers.
@atscott atscott force-pushed the autoTickFakeAsync branch from 9cfe5db to 559844b Compare August 5, 2025 00:00
Copy link
Contributor

@thePunderWoman thePunderWoman left a comment

Choose a reason for hiding this comment

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

LGTM!

@thePunderWoman thePunderWoman removed the request for review from alxhub August 8, 2025 07:31
@thePunderWoman thePunderWoman added the action: merge The PR is ready for merge by the caretaker label Aug 8, 2025
@thePunderWoman
Copy link
Contributor

caretaker note: TGP is green. This is safe to merge.

@thePunderWoman thePunderWoman 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 Aug 8, 2025
atscott added a commit that referenced this pull request Aug 8, 2025
…sync (#62135)

Benefits of auto-ticking mock clocks have been described in other PRs,
such as jasmine/jasmine#2042 and
sinonjs/fake-timers#509. In short, `fakeAsync`
cannot work when some tasks are required to be truly async, such as XHRs
or observers like ResizeObserver. In addition, auto ticking mock clocks
can be applied to tests without the tests then needing to update
everything to manually flush timers.

PR Close #62135
@atscott
Copy link
Contributor Author

atscott commented Aug 8, 2025

This PR was merged into the repository by commit 0a827f9.

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

@atscott atscott closed this in 0a827f9 Aug 8, 2025
@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 Sep 8, 2025
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: zones Issues related to zone.js 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