Skip to content
module@warp-drive/holodeck/mock

Interface LazyScaffold

ts
interface LazyScaffold {
  method: string;
  scaffold: () => Scaffold;
  url: string;
}

Defined in: mock.ts:29

A mock whose method and url are known up front, with the rest of the scaffold built only when holodeck is recording. This is what the mock helpers pass, so that in replay mode a test's response generators never run.

Properties

method

ts
method: string;

Defined in: mock.ts:30


scaffold

ts
scaffold: () => Scaffold;

Defined in: mock.ts:32

Returns

Scaffold


url

ts
url: string;

Defined in: mock.ts:31

Released under the MIT License.