4 ms·
> The test suite is not dependent on the frontend framework. I have yet to see a project that changed some underlying framework and kept the tests intact. Neve
by gtsop 5y ago
> The test suite is not dependent on the frontend framework.
I have yet to see a project that changed some underlying framework and kept the tests intact. Nevertheless, i think a more realistic approach is to decouple your react components from the buisness logic, thus being able to at least keep part of your test suite if you actually migrate frameworks. Another practice I've picked up is wrapping the react-specific test utils into my own module and re-exporting them. I hope this will make it easier to make global changes such as when an api is changed or even the whole framework.
Generally I don't disagree with the overall sentiment, i just think there is simply too much value in the jest tests to just ignore them. The feedback loop you get when running jest in the terminal is way faster than cypress.