Your Unit Tests Suck

1 pointsposted 5 months ago
by vettyvignesh

2 Comments

benoau

5 months 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

5 months ago

[deleted]