interface MockPluginOptions
Since 0.1.0

Options for createMockPlugin.

Properties

name: string

Plugin name (also used as the capability token when provides is absent).

service: object

The mock service object to register.

optional
provides: string

Capability token this plugin provides. Defaults to name. Override when the plugin name differs from the capability token.

optional
priority: number

Registration priority; passed through to the kernel resolver. Omitted when not needed (the returned plugin omits priority too).

optional
register: (ctx: IPluginContext) => void | Promise<void>

Additional registration callback invoked during register(ctx). Useful for registering middleware, routes, or lifecycle hooks alongside the mock service.

Usage

import { type MockPluginOptions } from "testing/src/index.ts";