Skip to content

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

Open

Description

@NullVoxPopuli

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions