Standard return shape for a Vitest / Jest custom matcher.
Matcher functions return { pass, message }:
{ pass, message }
pass: true
pass: false
message()
Standard return shape for a Vitest / Jest custom matcher.
Matcher functions return
{ pass, message }:pass: truemeans the assertion succeeded (no error thrown)pass: falsemeans the assertion failed;message()is invoked to produce the error string shown by the test runner