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

[Jest] Snapshot serializer not working #886

Open
Labels
@dkozar

Description

Hi,

I have the following snapshot serializer:

image

I've set it up (globally), so Jest uses it when unit tests are running:

image

It works nicely with render() method of @testing-library/react:

image

However, with renderHook(), it seems to not working:

image

It doesn't help if I target the className attribute instead of class:

image

Question: What do I have to do so react-hooks-testing-library uses the snapshot serializer?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

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