-
Notifications
You must be signed in to change notification settings - Fork 93
Add API for defer blocks #415
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
Comments
Thanks for bringing this up, I wasn't aware of this yet. |
Maybe we could make it a bit easier even: maybe |
Yea, ideally we have an API for that but in the meantime using fixture is a way to do this. // renderDeferState or renderDefer or renderDeferBlock or renderBlock 😅
// or rerender/set/...?
const { renderDeferState } = render(AppComponent);
// set the defer state of the first defer block
await renderDeferState(DeferBlockState.Complete)
// set a specific defer block using the index
await renderDeferState(DeferBlockState.Complete, 2) |
@Christian24 what do you think of the API introduced in #418 ? |
I am currently on vacation. I will report back next week 🙂
…________________________________
From: Tim Deschryver ***@***.***>
Sent: Monday, November 13, 2023 6:08:02 PM
To: testing-library/angular-testing-library ***@***.***>
Cc: Christian24 ***@***.***>; Mention ***@***.***>
Subject: Re: [testing-library/angular-testing-library] Add API for defer blocks (Issue #415)
@Christian24<https://github.com/Christian24> what do you think of the API introduced in #418<#418> ?
—
Reply to this email directly, view it on GitHub<#415 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AASLR235DUN3CZDDA6PDAQ3YEJHXFAVCNFSM6AAAAAA6765H3KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBYGYYDENBWGM>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hello,
defer
blocks are now in developer preview with Angular 17. There seem to be new features in component fixtures. Are there already plans how to support this in testing-library?The API Angular provides for this seems to be pretty straightforward, so maybe it should just be wrapped?
The text was updated successfully, but these errors were encountered: