Constructors

Properties

caller?: {
    at: CallSiteLike | CallSiteLikeJSON;
    dir: string;
    path: string;
    stack?: string;
    url: URL;
}
key: string = ...
mocks?: Record<string, Record<string, any>>
module?: string | Promise<string>

Methods

  • Parameters

    • module: string
    • mocks: Record<string, any> = {}
    • caller: Function | ((...a: any[]) => any) = MockService.create

    Returns Promise<MockService & {
        module: string | Promise<string>;
    }>