Skip to main content

@abapify/adt-fixtures

Centralised registry of real SAP ADT XML responses for reuse across tests and scripts, plus the in-process mock ADT HTTP server used by the MCP and e2e suites. Fixtures load lazily.

Private package

@abapify/adt-fixtures is marked private: true — it ships with the monorepo and is not published to the registry.

Install

Workspace dependency only:

{ "devDependencies": { "@abapify/adt-fixtures": "workspace:*" } }

Public API

export { load, getPath, getFixturesRoot } from '@abapify/adt-fixtures';
export { fixtures } from '@abapify/adt-fixtures';
export type { FixtureHandle, Fixtures } from '@abapify/adt-fixtures';

// Mock ADT HTTP server
export {
createMockAdtServer,
LockRegistry,
matchRoute,
loadRouteFixtures,
} from '@abapify/adt-fixtures';
export type {
MockAdtServer,
MockAdtServerOptions,
LockEntry,
RouteResult,
LoadedFixtures,
} from '@abapify/adt-fixtures';

Usage

import { fixtures, createMockAdtServer } from '@abapify/adt-fixtures';

// Lazy fixture load
const xml = await fixtures.transport.single.load();

// Spin up the mock server (integration tests)
const server = await createMockAdtServer();
try {
// ... point your client at server.baseUrl
} finally {
await server.close();
}

Dependencies

See also