UNPKG

@dbs-portal/core-api

Version:

HTTP client and API utilities for DBS Portal

32 lines 1.17 kB
/** * @dbs-portal/core-api/mocks * * MSW (Mock Service Worker) integration for API mocking. * Provides seamless switching between real and mocked APIs for development and testing. */ // Core MSW setup export { setupMocks, teardownMocks } from './setup'; export { mockConfig, updateMockConfig } from './config'; // Browser and Node setup export { setupBrowser } from './browser'; export { setupServer } from './server'; // Handler management export { HandlerManager } from './handlers/handler-manager'; export { createHandler, createHandlers } from './handlers/factory'; // Mock data factories export * from './factories'; // Utilities export * from './utils'; // Types export * from './types'; // Pre-configured handlers export { defaultHandlers } from './handlers/default-handlers'; export { authHandlers } from './handlers/auth-handlers'; export { createCrudHandlers } from './handlers/crud-handlers'; // Environment detection export { isMockingEnabled, getMockingMode } from './config/environment'; // Integration with existing API patterns export * from './integration'; // Build system integration export * from './build'; //# sourceMappingURL=index.js.map