Fregister
Bun

function

test.assert.register

function register(
name: string,
fn: (this: TestContext, ...args: any[]) => void
): void;

Defines a new assertion function with the provided name and function. If an assertion already exists with the same name, it is overwritten.