Which matchers are available depends on the type of actual: every value
gets CommonMatchers, and strings, arrays and numbers get matchers
specific to them. A failed matcher throws an AssertionError from
node:assert, which test runners such as node:test report as a failure.
Starts an assertion on
actual.Which matchers are available depends on the type of
actual: every value gets CommonMatchers, and strings, arrays and numbers get matchers specific to them. A failed matcher throws anAssertionErrorfromnode:assert, which test runners such asnode:testreport as a failure.