Skip to main content
Version: Next

setupRequestMockHandlers()

Home > @backstage/test-utils > setupRequestMockHandlers

Warning: This API is now obsolete.

Use registerMswTestHooks from @backstage/test-utils instead.

Signature:

function setupRequestMockHandlers(worker: {
listen: (t: any) => void;
close: () => void;
resetHandlers: () => void;
}): void;

Parameters

ParameterTypeDescription
worker{ listen: (t: any) => void; close: () => void; resetHandlers: () => void; }

Returns:

void