Skip to content
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

Add new section under testing "Using test waiters" #2076

Open
NullVoxPopuli opened this issue Nov 19, 2024 · 0 comments
Open

Add new section under testing "Using test waiters" #2076

NullVoxPopuli opened this issue Nov 19, 2024 · 0 comments

Comments

@NullVoxPopuli
Copy link
Contributor

NullVoxPopuli commented Nov 19, 2024

this is one of the most important topics in testing, and we don't say anything haha

What is settled?
when do you want to be settled?
renderSettled?
some techniques for defining settledness?

  • with modifiers (floating-ui, for example)
  • async
  • observer-gating

how to debug waiters?

// in test-helper.ts
Object.assign(window, { getSettledState, getPendingWaiterState, currentURL, currentRouteName });
// (this should probably be in the blueprint)

and then when a test haults, you can use getSettledState, etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant