5 ms·
I'm a non-React dev but I wrote modern apps with Angular (and have written React). I think the best testable approach really is: 1. unit testing on the smalles
by antjanus 8y ago
I'm a non-React dev but I wrote modern apps with Angular (and have written React). I think the best testable approach really is:
1. unit testing on the smallest bits (Redux actions/reducers make unit testing them SUPER easy)
2. do e2e with something like Cypress.
Anything in between can be helpful but I found it can be too tedious, or difficult to do and ultimately, unit/e2e catches most things
- dceddia 8y agoI think this is a solid approach. I like to add snapshot testing for individual components too. The slowest tests to write for me are always the ones that involve some kind of async stuff.