react-hooks-testing-library
react-hooks-testing-library copied to clipboard
[Jest] Snapshot serializer not working
Hi,
I have the following snapshot serializer:

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

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

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

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

Question: What do I have to do so react-hooks-testing-library uses the snapshot serializer?
This needs a proper reproduction with no redactions for us to correctly investigate please.