@itd-api/testing / InitialMockRoute
Interface: InitialMockRoute
Defined in: packages/testing/src/mock-fetch.ts:28
Extends
Properties
method
ts
readonly method: string;Defined in: packages/testing/src/router.ts:5
Inherited from
optional?
ts
optional optional?: boolean;Defined in: packages/testing/src/mock-fetch.ts:25
Не считать ошибкой, если маршрут не использован.
Inherited from
path
ts
readonly path: string;Defined in: packages/testing/src/router.ts:7
Путь с параметрами :name, например /api/posts/:postId.
Inherited from
repeat?
ts
optional repeat?: boolean;Defined in: packages/testing/src/mock-fetch.ts:23
Повторять последний ответ после завершения последовательности.
Inherited from
respond
ts
readonly respond:
| MockResponder
| readonly MockResponder[];Defined in: packages/testing/src/mock-fetch.ts:29