Content-Length: 277750 | pFad | http://github.com/angular/angular/pull/61755

3A fix(zone.js): waitForAsync should pass args to the test function by atscott · Pull Request #61755 · angular/angular · GitHub
Skip to content

fix(zone.js): waitForAsync should pass args to the test function #61755

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

atscott
Copy link
Contributor

@atscott atscott commented May 29, 2025

This ensures that test functions with arguments (e.g. it.each in jest) are forwarded to the test function. This does not apply to jasmine, which assumes the only arguments needed would be the done function.

fixes #61717

This ensures that test functions with arguments (e.g. `it.each` in jest)
are forwarded to the test function. This does not apply to jasmine,
which assumes the only arguments needed would be the `done` function.

fixes angular#61717
@atscott atscott added the target: patch This PR is targeted for the next patch release label May 29, 2025
@pullapprove pullapprove bot requested review from JiaLiPassion May 29, 2025 20:00
@angular-robot angular-robot bot added the area: zones Issues related to zone.js label May 29, 2025
@ngbot ngbot bot added this to the Backlog milestone May 29, 2025
@NateRadebaugh
Copy link
Contributor

Should this also have a matching test for vitest?

@atscott
Copy link
Contributor Author

atscott commented May 30, 2025

@NateRadebaugh No, fakeAsync and waitForAsync are not supported in Vitest right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: zones Issues related to zone.js target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test wrapped in waitForAsync does not receive parameterized values from jest it.each
2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/angular/angular/pull/61755

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy