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

Interface LazyScaffold ​

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

Defined in: mock.ts:40

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:41


scaffold ​

ts
scaffold: () => Scaffold;

Defined in: mock.ts:43

Returns ​

Scaffold


url ​

ts
url: string;

Defined in: mock.ts:42

Released under the MIT License.