Skip to main content
Registers the four matchers on a runner’s expect.

Parameters

target

MatcherTarget

Returns

void

Remarks

The vitest and jest presets call this, so a suite that loads @tappify/extension-sdk/testing/vitest or .../testing/jest as a setup file needs nothing else. Call it yourself only in a suite that does not use a preset, and once — registering twice replaces the same four names. It adds no types of its own, so a suite without a preset declares the four on the runner’s Matchers interface itself.

Example