Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you’re still writing unit tests consider using a strongly typed functional language instead. Typescript will get you most of the way there. At some point you’ll realize all the assertions you’re making are already covered. Integration tests are the only valuable tests in my experience, using something like puppeteer, playwright, or cypress that automatically runs as part of a build pipeline.


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: