UNPKG

@valantic/spartacus-mock

Version:

This project offers you the possibility to mock the OCC Endpoints of your Composable Storefront (Spartacus). It uses the Mock Service Worker to mock the API calls.

7 lines (6 loc) 460 B
import { HttpHandler } from 'msw'; import { PageFactoryService, PageService } from '../mock-data'; import { MockConfig } from '../types'; export declare const getCmsPagesHandler: (routes: any, // TODO change type to be something real after SAP exports the default routes config pageFactoryService: PageFactoryService, pageService: PageService, config: MockConfig) => HttpHandler[]; export declare const getCmsComponentsHandler: (routes: any) => HttpHandler[];