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