Closed erikian closed 4 months ago
that's probably something we should move away from at some point, but for now that helper should make it a bit easier to migrate away from Enzyme.
I think this is reasonable. Migrating off of Enzyme will unblock us on other stuff and long-term we can further improve our testing methodology.
Ref: #1408.
I'm also adding a helper function that allows us to access class components' instances, since RTL doesn't expose them and a bunch of our tests are messing with component internals directly; that's probably something we should move away from at some point, but for now that helper should make it a bit easier to migrate away from Enzyme.