실제로 방금 어떤 사례를 발견했냐면, 계산이 살짝 까다로운 값에 대한 테스트를 만들라고 시켰더니 코드를 한 백줄 뱉어내는데

expect(x).toBe(42)

이렇게 값에 대한 테스트를 안하고

expect(typeof x).toBe("number")

이러고 넘어가려고 했다. 손바닥 이리내.

5

If you have a fediverse account, you can quote this note from your own instance. Search https://hackers.pub/ap/notes/0196a430-0a1b-7d0a-bff1-f61c4548fa08 on your instance and quote it. (Note that quoting is not supported in Mastodon.)