Open charlierudolph opened 7 years ago
Why the id?
The id is just being used as an example of a way to tell refs apart (in case you had multiple)
react-test-renderer
has an API for this called createNodeMock
. If we supported this, it would be nice if it was consistent with that API.
Do you have any plans to support createNodeMock
on enzyme mount ?
Just an idea I had which is I believe the minimal I need in order to be to test some functionality with refs while still being able to use shallow rendering.
I'm happy to try and implement this if you like the idea.