Re:My favourite Git commit (2019)
by jfkebwjsbx on Sunday March 08, 2020 @03:53PM
(#22520139)
What do you mean by matcher?
[ Parent
| on HN ]
> "matchers" [...] let you test values in different ways
Example docs for Jest's matchers: https://jestjs.io/docs/en/using-matchers
Generally speaking, if you use a specific matcher, you get a better (more informative) error message when the test fails.
Re:My favourite Git commit (2019)
by jfkebwjsbx on Sunday March 08, 2020 @04:50PM
(#22520521)
Ah, the common testing functions like `assert_equal`. Thanks!