Tap plugin that adds a heaping pile of assertion methods. Pretty
much all of the "test" methods other than
come from this plugin.
This plugin is installed with tap by default. If you had
previously removed it, you can
tap plugin add @tapjs/asserts to
bring it back.
This plugin adds the
compareOptions option to the set of fields
that can be passed to child tests. You can also set
t.compareOptions after the fact.
compareOptions lets you pass options to
to specify the formatting style, diff context lines, and so on.
It can contain the following fields:
sort- boolean, sort items alphabetically by key.
bufferChunkSize- number of bytes to show on each line when printing buffers, default
includeEnumerable- boolean, include any and all enumerable properties, including those inherited on the prototype chain. By default, only
ownproperties are shown.
includeGetters- boolean, include getter properties.
diffContext- how many lines of context to print around changes in diffs, default
10. Note that the test reporter might use more or less than this value when displaying pretty colored diffs.
All of the assertion methods are documented on the
When this plugin is loaded, these are all present on
Generated using TypeDoc