Hi Sergey Zarouski!
I personally appreciate the tradeoffs of having different ways to describe expected results to enable good error messages in tests. If everything were just
assert(somethingIsTrue) then all your failure messages would be:
somethingIsTrue !== true which is less helpful than
expected fn to be called once but was called three times.
I’m not the biggest fan of the globals from Jest, but I’ll take the globals for the features of the test runner any day.
I hope that’s helpful!