/** * Public surface of `@dowser/http-testing`. * * This main entry is RN-safe: it only re-exports value/type symbols that do * not transitively load `@mswjs/interceptors` (or any other Node-only code). * Spec authors writing on-device dowser specs can `import {waitForHttp} from * '@dowser/http-testing'` and the import will compile cleanly under Hermes. * * The actual interceptor — `installHttpController` — lives behind the * `/node` subpath because MSW interceptors require Node built-ins and * crash at module-init time on Hermes. Use it from regular Jest/Vitest * tests: * * import {installHttpController} from '@dowser/http-testing/node'; * import {waitForHttp} from '@dowser/http-testing'; * * describe('login', () => { * const http = installHttpController(); * afterEach(() => http.uninstall()); * * it('flushes auth response', async () => { * startLogin(); * const auth = await waitForHttp(http, '/api/auth'); * auth.flush({access_token: 'xyz', expires_in: 3600}); * }); * }); * * Apollo Link-level interception (for GraphQL flush control) is out of scope * here — it requires wiring into a specific Apollo client instance, which is * app-specific glue. Keep that helper in your app's testing utilities. */ export type { HttpController, HttpExpectation, HttpMatcher, } from './http-controller.js'; export { waitForHttp } from './wait-for-request.js'; export type { WaitOptions } from './wait-for-request.js'; export { flushSequential } from './flush-sequential.js'; export type { SequentialStep } from './flush-sequential.js'; //# sourceMappingURL=index.d.ts.map