Closed twang2218 closed 7 years ago
Hello @twang2218,
that is true. We do not plan to release it with version 4, as there are much better and smoother ways to test (e.g. enzyme). The shallowRenderHelper was a stopgap measure because there was no such solution at the time. We integrated the generatedWithVersion key in the yo rc to make our changes backwards compatible and old projects may still use them.
That said, if you create a project with version 4 and set the version to 3, it will always create the neccesairy testfiles for version 3, which depend on shallowRenderHelper.
Hope this helps.
Closing this due to inactivity. Please feel free to reopen this issue if you have further questions.
If set
generatedWithVersion: 3
, the generated test case will fail to find thehelpers/shallowRenderHelper
anymore, as it's been replaced byshallow
fromenzyme
now.