Skip to content

Function extend()

extend(test: TestAPI): ExtendedTestAPI

Source: test.ts

Extends Vitest's TestAPI with functions from the CustomTestAPI.

Parameters

test

TestAPI

The Vitest test API.

Returns

ExtendedTestAPI

The extended test API.

Example

ts
import { test as base } from "vitest";

const test = extend(base);

Built by Prozilla