method FixtureManager.prototype.mock
FixtureManager.prototype.mock(
name: string,
service: object,
options?: { provides?: string; priority?: number; }
): this

Registers a mock service under a capability token.

Parameters

name: string

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

service: object

The mock service object

optional
options: { provides?: string; priority?: number; }

Optional provides token and priority

Return Type

this

this for chaining

Usage

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