Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Finish the migration guide? #979

Open
Open
Labels
bugSomething isn't working
@alexeyr-ci2

Description

Posting under this template since the description includes "missing documentation"

What you did:

Read https://github.com/testing-library/react-hooks-testing-library/blob/chore/migration-guide/MIGRATION_GUIDE.md.

What happened:

https://github.com/testing-library/react-hooks-testing-library/blob/chore/migration-guide/MIGRATION_GUIDE.md ends with the "wrapper Props" header.

Is it supposed to say that initialProps in @testing-library/react-hooks are passed both to the hook and to the wrapper, but in @testing-library/react they are only passed to the hook? I just ran into this issue and took quite a lot of time to figure out that my wrapper didn't get Apollo mocks with the @testing-library/react version of renderHook.

Problem description:

The migration guide is incomplete.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /