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

Fix type definitions for promises #10600

Merged
merged 1 commit into from
Oct 6, 2020
Merged

Commits on Oct 6, 2020

  1. Fix type definitions for promises

    When calling `mockResolvedValue` (-`Once`), the argument should be
    the expected return value unwrapped from its Promise. Likewise,
    when mocking a rejected value, the passed argument needs not
    necessarily be of the same type as the expected successful return
    value.
    Vinnl committed Oct 6, 2020
    Configuration menu
    Copy the full SHA
    e657423 View commit details
    Browse the repository at this point in the history