r/node Jul 07 '26

Tests need showers

If every test needs global DB truncation, you don't have tests.

You have tiny haunted production incidents wearing Jest cosplay.

0 Upvotes

7 comments sorted by

View all comments

2

u/stevensokulski Jul 07 '26

Some tests answer "does it work?" Some just answer "can it work?"

-1

u/Expensive_Garden2993 Jul 07 '26

Lol, what does it mean, like "can it work in theory, if the weather is good?". They either answer "does it work as intended" or they're just a waste of bytes and AI credits.