this post was submitted on 26 Jul 2024
13 points (93.3% liked)
TypeScript
835 readers
1 users here now
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
One pet peeve of mine is testing libraries having
toBeTruthy
/toBeFalsy
matchers, but nottoBeTrue
andtoBeFalse
. I get that the latter are no shorter thantoBe(true)
, but if the former are listed in the docs, then people who don't know the terminology will use those - I've seen (past) coworkers do that.