New post from Mastodon !
Ha ha this from Claude was funny, kind of 😅
#vibecoding #ai #claude #testing
Why the unit tests didn't catch it?
tests/test-common-helpers.sh:127-131 shipped its own fake lswsctrl that did accept test:
[[ "$1" == "test" ]] && exit "${LSWS_FAKE_RC:-0}"
The mock was modeled on a fictitious API. Mocked tests passed; the real binary fails.
(Same class of issue as the early CLAUDE.md warning about mocking masking prod divergence.)