Your Unit Tests Suck

1 pointsposted 8 hours ago
by vettyvignesh

2 Comments

benoau

7 hours ago

What I really hate about testing mocks is you're just testing mocks, eventually your entire suite is just testing one big abstraction effectively designed to pass.

I've always preferred unit tests for core logic and "full system" E2E tests using "real" infrastructure as much as possible, especially via Puppeteer and these days Playwright, then you can safely be as ambitious as you want anywhere in the software.

user

8 hours ago

[deleted]