Testing · Senior · Question 67 of 75
How do you approach testing in a large legacy frontend without tests?
- ✓Correct answer: Start with a few E2E smoke tests of critical flows, then add integration tests around code you change
- 2Write unit tests for every file before changing anything
- 3Rewrite the app first
Explanation
Broad smoke tests give a safety net quickly; finer tests grow where the code changes.