n8n/packages/@n8n/backend-network/src/testing.ts
Lorent Lempereur 4b9dc5a5ec
fix(core): Apply proxy environment variables consistently across packages and processes (#37124)
Co-authored-by: Danny Martini <danny@n8n.io>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-27 16:26:08 +00:00

19 lines
851 B
TypeScript

/**
* Test-only entry point (`@n8n/backend-network/testing`).
*
* These helpers are not part of the runtime contract: they exist so existing
* test suites in other packages can exercise the axios translation internals
* directly. Keep them out of the main barrel so the public surface stays
* limited to what production callers actually need.
*/
export { convertN8nRequestToAxios, httpRequest } from './http/axios/request';
export { uninstallGlobalProxyAgent } from './http/http-proxy';
export { generateContentLengthHeader, isFormDataInstance } from './http/axios/utils';
export { buildRfcStyleUserAgent, getDefaultN8nOutboundUserAgent } from './http/axios/user-agent';
export { startServer, type LocalServer } from './http/local-server';
export {
createFakeOutboundHttp,
type Route,
type MockFnFactory,
} from './http/fake-outbound-http';